CC-4099: More stricter checking on ogg file types
-fixed
This commit is contained in:
parent
fc1b69e1d1
commit
b782b9a9b6
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue