m4a support - test pls

This commit is contained in:
Remy
2011-07-29 22:21:14 -07:00
parent 4b586c0b64
commit 7a822dbc95
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ def scanMusic(dir=None):
for r,d,f in os.walk(dir):
for files in f:
if any(files.endswith(x) for x in (".mp3", ".flac", ".aac", ".ogg", ".ape")):
if any(files.endswith(x) for x in (".mp3", ".flac", ".aac", ".ogg", ".ape", ".m4a")):
results.append(os.path.join(r, files))
logger.info(u'%i music files found. Reading metadata....' % len(results))

View File

@@ -33,7 +33,7 @@ def verify(albumid, albumpath):
downloaded_track_list = []
for r,d,f in os.walk(albumpath):
for files in f:
if any(files.endswith(x) for x in (".mp3", ".flac", ".aac", ".ogg", ".ape")):
if any(files.endswith(x) for x in (".mp3", ".flac", ".aac", ".ogg", ".ape", ".m4a")):
downloaded_track_list.append(os.path.join(r, files))
# test #1: metadata - usually works