summaryrefslogtreecommitdiff
path: root/musictomp3
diff options
context:
space:
mode:
authorLars Wirzenius <liw@gytha>2009-11-13 19:11:04 +0200
committerLars Wirzenius <liw@gytha>2009-11-13 19:11:04 +0200
commit71711b8ed729eb38dca8b89ffedcf479316f7c1e (patch)
treeaabc7dff650da886de151cc25a39f1f886880baa /musictomp3
parent411ecba7be71b1ee3f1a4acd784e8e7d60f3d9d9 (diff)
downloadextrautils-71711b8ed729eb38dca8b89ffedcf479316f7c1e.tar.gz
Copy .m4a files (AAC) as is, they way .mp3 files are copied.
Diffstat (limited to 'musictomp3')
-rwxr-xr-xmusictomp33
1 files changed, 2 insertions, 1 deletions
diff --git a/musictomp3 b/musictomp3
index f0eb63d..08e59c8 100755
--- a/musictomp3
+++ b/musictomp3
@@ -190,7 +190,8 @@ class MusicToMp3(object):
return filename.endswith('.flac')
def needs_copying(self, filename):
- return filename.endswith('.mp3')
+ dummy, ext = os.path.splitext(filename)
+ return ext.lower() in ['.mp3', '.m4a']
def run(self):
logging.basicConfig(filename='musictomp3.log', level=logging.DEBUG)