From 7c5c0cfcb6e74f1576b8b1c80665e5bcbedcc3b9 Mon Sep 17 00:00:00 2001 From: vijeth-aradhya Date: Mon, 14 Aug 2017 19:37:37 +0530 Subject: [PATCH] Change webm to webm_video in media_size check Closes #8 --- mediagoblin/db/mixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1