Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
cd0ff848fc
|
@ -27,10 +27,15 @@ class MediaMonitorCommon:
|
|||
def is_temp_file(self, filename):
|
||||
info = filename.split(".")
|
||||
|
||||
# if file doesn't have any extension, info[-2] throws exception
|
||||
# Hence, checking length of info before we do anything
|
||||
if(len(info) >= 3):
|
||||
if(info[-2] in self.supported_file_formats):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
else:
|
||||
return False
|
||||
|
||||
def is_audio_file(self, filename):
|
||||
info = filename.split(".")
|
||||
|
|
Loading…
Reference in New Issue