From fe31705442fc030707360cb636c47352ebe6c7ec Mon Sep 17 00:00:00 2001 From: redvers76 Date: Thu, 1 Sep 2011 14:15:16 +0200 Subject: [PATCH] Need to lower() files during library scan to allow for .MP3 and .Mp3 suffixes --- headphones/librarysync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/librarysync.py b/headphones/librarysync.py index 81a7da4d..b585c8b6 100644 --- a/headphones/librarysync.py +++ b/headphones/librarysync.py @@ -39,7 +39,7 @@ def libraryScan(dir=None): for r,d,f in os.walk(dir): for files in f: # MEDIA_FORMATS = music file extensions, e.g. mp3, flac, etc - if any(files.endswith('.' + x) for x in headphones.MEDIA_FORMATS): + if any(files.lower().endswith('.' + x.lower()) for x in headphones.MEDIA_FORMATS): song = os.path.join(r, files) file = unicode(os.path.join(r, files), headphones.SYS_ENCODING, errors='replace')