Change webm to webm_video in media_size check
authorvijeth-aradhya <vijthaaa@gmail.com>
Mon, 14 Aug 2017 14:07:37 +0000 (19:37 +0530)
committervijeth-aradhya <vijthaaa@gmail.com>
Mon, 14 Aug 2017 14:07:37 +0000 (19:37 +0530)
Closes #8

mediagoblin/db/mixin.py

index b47dc0e75fdd8e46830e82ef3557073e7e05b52b..5f2eb11d5ec8deb511982ac9f1dbe527d8abd862 100644 (file)
@@ -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