CC-3946: Files with upper case "MP3" extension not being imported
- fixed
This commit is contained in:
parent
67c90ae3d6
commit
841dd298d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue