|
|
|
@ -81,11 +81,14 @@
|
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
|
|
{% macro as_play_link(element) -%}
|
|
|
|
|
{%- set opts = {
|
|
|
|
|
"video_uri": element.uri,
|
|
|
|
|
"start": element.progress,
|
|
|
|
|
} -%}
|
|
|
|
|
<a class="button" href="entertainment-decider:///player/play?{{ opts | encode_options }}">Play</a>
|
|
|
|
|
{# 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>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{%- endmacro -%}
|
|
|
|
|
|
|
|
|
|
{% macro _navigation() %}
|
|
|
|
|