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:
@@ -93,13 +93,17 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% for name, media in media.media_files|dictsort|list %}
|
||||||
|
{% if name.startswith('webm') %}
|
||||||
|
<li>
|
||||||
|
<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 %}
|
{% if 'webm_video' in media.media_files %}
|
||||||
<li>
|
|
||||||
<a href="{{ request.app.public_store.file_url(
|
|
||||||
media.media_files.webm_video) }}">
|
|
||||||
{%- trans %}WebM file (VP8/Vorbis){% endtrans -%}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user