CC-3946: Files with upper case "MP3" extension not being imported

- fixed
This commit is contained in:
James 2012-06-08 15:07:14 -04:00
parent 67c90ae3d6
commit 841dd298d5
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class MediaMonitorCommon:
# if file doesn't have any extension, info[-2] throws exception
# Hence, checking length of info before we do anything
if(len(info) >= 2):
if(info[-2] in self.supported_file_formats):
if(info[-2].lower() in self.supported_file_formats):
return True
else:
return False
@ -45,7 +45,7 @@ class MediaMonitorCommon:
def is_audio_file(self, filename):
info = filename.split(".")
if(info[-1] in self.supported_file_formats):
if(info[-1].lower() in self.supported_file_formats):
return True
else:
return False