From: vijeth-aradhya Date: Mon, 14 Aug 2017 14:07:37 +0000 (+0530) Subject: Change webm to webm_video in media_size check X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7c5c0cfcb6e74f1576b8b1c80665e5bcbedcc3b9;p=mediagoblin.git Change webm to webm_video in media_size check Closes #8 --- diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index b47dc0e7..5f2eb11d 100644 --- a/mediagoblin/db/mixin.py +++ b/mediagoblin/db/mixin.py @@ -267,11 +267,11 @@ class MediaEntryMixin(GenerateSlugMixin, GeneratePublicIDMixin): if media_size in media_sizes: file_metadata = self.get_file_metadata(media_size) size = file_metadata['medium_size'] - if media_size != 'webm': + if media_size != 'webm_video': all_media_path.append((media_size[5:], size, self.media_files[media_size])) else: - sall_media_path.append(('default', size, + all_media_path.append(('default', size, self.media_files[media_size])) return all_media_path