Update video links to support multiple resolution transcoding [#5620].
We may need to push download link creation into the view in the future to make it more fully featured, but this will solve the immediate issue with missing download links on new media after 0.10.0. Sorting of entries won't be right if your media is over 999p since it's alphabetical.
This commit is contained in:
parent
41db886d63
commit
a25a6e3395
@ -93,13 +93,17 @@
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if 'webm_video' in media.media_files %}
|
||||
{% for name, media in media.media_files|dictsort|list %}
|
||||
{% if name.startswith('webm') %}
|
||||
<li>
|
||||
<a href="{{ request.app.public_store.file_url(
|
||||
media.media_files.webm_video) }}">
|
||||
<a href="{{ request.app.public_store.file_url(media) }}">
|
||||
{%- trans %}WebM file (VP8/Vorbis){% endtrans -%}
|
||||
{{ name | replace('webm_', ' ') }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if 'webm_video' in media.media_files %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user