Merge branch 'devel' of dev.sourcefabric.org:airtime into devel

This commit is contained in:
Martin Konecny 2011-10-27 15:22:49 -04:00
commit cd0ff848fc
1 changed files with 8 additions and 3 deletions

View File

@ -27,8 +27,13 @@ class MediaMonitorCommon:
def is_temp_file(self, filename):
info = filename.split(".")
if(info[-2] in self.supported_file_formats):
return True
# 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