|
|
@ -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 -%}
|
|
|
|
|
|
|
|
|
|
|
|