projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bb617f
)
Change webm to webm_video in media_size check
author
vijeth-aradhya
<vijthaaa@gmail.com>
Mon, 14 Aug 2017 14:07:37 +0000
(19:37 +0530)
committer
vijeth-aradhya
<vijthaaa@gmail.com>
Mon, 14 Aug 2017 14:07:37 +0000
(19:37 +0530)
Closes #8
mediagoblin/db/mixin.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/db/mixin.py
b/mediagoblin/db/mixin.py
index b47dc0e75fdd8e46830e82ef3557073e7e05b52b..5f2eb11d5ec8deb511982ac9f1dbe527d8abd862 100644
(file)
--- 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:
-
s
all_media_path.append(('default', size,
+ all_media_path.append(('default', size,
self.media_files[media_size]))
return all_media_path