CC-4099: More stricter checking on ogg file types

-fixed
This commit is contained in:
Martin Konecny 2012-07-11 18:14:03 -04:00
parent fc1b69e1d1
commit b782b9a9b6

View file

@ -255,5 +255,8 @@ class AirtimeMetadata:
md['MDATA_KEY_FTYPE'] = "audioclip"
elif "vorbis" in md['MDATA_KEY_MIME']:
md['MDATA_KEY_FTYPE'] = "audioclip"
else:
self.logger.error("File %s of mime type %s does not appear to be a valid vorbis or mp3 file." % (filepath, md['MDATA_KEY_MIME']))
return None
return md