From a25a6e3395bb39284c15e29d0892e540aa133479 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Tue, 9 Mar 2021 22:39:04 +1100 Subject: [PATCH] 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. --- .../mediagoblin/media_displays/video.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/media_displays/video.html b/mediagoblin/templates/mediagoblin/media_displays/video.html index f3e1978e..4a01b428 100644 --- a/mediagoblin/templates/mediagoblin/media_displays/video.html +++ b/mediagoblin/templates/mediagoblin/media_displays/video.html @@ -93,13 +93,17 @@ {% endif %} + {% for name, media in media.media_files|dictsort|list %} + {% if name.startswith('webm') %} +
  • + + {%- trans %}WebM file (VP8/Vorbis){% endtrans -%} + {{ name | replace('webm_', ' ') }} + +
  • + {% endif %} + {% endfor %} {% if 'webm_video' in media.media_files %} -
  • - - {%- trans %}WebM file (VP8/Vorbis){% endtrans -%} - -
  • {% endif %} {% endblock %}