From 71711b8ed729eb38dca8b89ffedcf479316f7c1e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 13 Nov 2009 19:11:04 +0200 Subject: Copy .m4a files (AAC) as is, they way .mp3 files are copied. --- musictomp3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'musictomp3') 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) -- cgit v1.2.1