Prevent erroring out in some cases of checking video metadata

This commit is contained in:
Christopher Allan Webber 2016-07-14 10:48:28 -05:00
parent 1f23be2d85
commit da686c1998

View File

@ -69,7 +69,7 @@ class VideoData(Base):
orig_metadata = self.orig_metadata or {} orig_metadata = self.orig_metadata or {}
if ("webm_video" not in self.get_media_entry.media_files if ("webm_video" not in self.get_media_entry.media_files
and "mimetype" in orig_metadata['common']['tags'] and "mimetype" in orig_metadata.get('common', {}).get('tags', {})
and "codec" in orig_metadata['audio'] and "codec" in orig_metadata['audio']
and "codec" in orig_metadata['video']): and "codec" in orig_metadata['video']):
if orig_metadata['mimetype'] == 'application/ogg': if orig_metadata['mimetype'] == 'application/ogg':