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> </form>
{% endmacro %} {% endmacro %}
{% macro as_play_link(element) -%} {% macro as_play_link(element, symbol='Play') -%}
{# TODO do not hardcode certain extractors here #} {# TODO do not hardcode certain extractors here #}
{% if element.extractor_name in ["ytdl", "youtube"] %} {% if element.extractor_name in ["ytdl", "youtube"] %}
{%- set opts = { {%- set opts = {
"video_uri": element.uri, "video_uri": element.uri,
"start": element.progress, "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 %} {% endif %}
{%- endmacro -%} {%- endmacro -%}

Loading…
Cancel
Save