diff options
author | Lars Wirzenius <liw@gytha> | 2009-11-13 19:11:04 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@gytha> | 2009-11-13 19:11:04 +0200 |
commit | 71711b8ed729eb38dca8b89ffedcf479316f7c1e (patch) | |
tree | aabc7dff650da886de151cc25a39f1f886880baa | |
parent | 411ecba7be71b1ee3f1a4acd784e8e7d60f3d9d9 (diff) | |
download | extrautils-71711b8ed729eb38dca8b89ffedcf479316f7c1e.tar.gz |
Copy .m4a files (AAC) as is, they way .mp3 files are copied.
-rwxr-xr-x | musictomp3 | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |