diff --git a/server/templates/macros.htm b/server/templates/macros.htm index c112c77..60f5aab 100644 --- a/server/templates/macros.htm +++ b/server/templates/macros.htm @@ -81,11 +81,14 @@ {% endmacro %} {% macro as_play_link(element) -%} - {%- set opts = { - "video_uri": element.uri, - "start": element.progress, - } -%} - Play + {# TODO do not hardcode certain extractors here #} + {% if element.extractor_name in ["ytdl", "youtube"] %} + {%- set opts = { + "video_uri": element.uri, + "start": element.progress, + } -%} + Play + {% endif %} {%- endmacro -%} {% macro _navigation() %}