Make play button content / symbol configurable

master
Felix Stupp 2 years ago
parent 6ec7da89a9
commit 47aeeb5f34
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -80,14 +80,14 @@
</form>
{% endmacro %}
{% macro as_play_link(element) -%}
{% macro as_play_link(element, symbol='Play') -%}
{# TODO do not hardcode certain extractors here #}
{% if element.extractor_name in ["ytdl", "youtube"] %}
{%- set opts = {
"video_uri": element.uri,
"start": element.progress,
} -%}
<a class="button" href="entertainment-decider:///player/play?{{ opts | encode_options }}">Play</a>
<a class="button" href="entertainment-decider:///player/play?{{ opts | encode_options }}">{{ symbol | safe }}</a>
{% endif %}
{%- endmacro -%}

Loading…
Cancel
Save