forked from rDrama/rDrama
same as last commit
parent
3be41ce7ca
commit
2f9deaa385
|
@ -25,9 +25,9 @@
|
||||||
{% elif orgy.type == 'file' %}
|
{% elif orgy.type == 'file' %}
|
||||||
<meta name="referrer" content="strict-origin-when-cross-origin">
|
<meta name="referrer" content="strict-origin-when-cross-origin">
|
||||||
<video id="orgy-file" data-created_utc="{{orgy.real_start_utc}}" controls preload="none" src="{{orgy.data}}">
|
<video id="orgy-file" data-created_utc="{{orgy.real_start_utc}}" controls preload="none" src="{{orgy.data}}">
|
||||||
{% set subtitles_path = 'files/assets/' ~ orgy.data.split('/')[-1].split('.')[0] ~ '.vtt' %}
|
{% set subtitles_url = '/assets/' ~ orgy.data.split('/')[-1].split('.')[0] ~ '.vtt' %}
|
||||||
{% if os_path.exists(subtitles_path) %}
|
{% if os_path.exists('files' ~ subtitles_url) %}
|
||||||
<track label="English" kind="subtitles" srclang="en" src="{{subtitles_path}}" default>
|
<track label="English" kind="subtitles" srclang="en" src="{{subtitles_url}}" default>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</video>
|
</video>
|
||||||
<video id="break-file" class="d-none" controls preload="none" src="/assets/break.mp4" data-run="0"></video>
|
<video id="break-file" class="d-none" controls preload="none" src="/assets/break.mp4" data-run="0"></video>
|
||||||
|
|
Loading…
Reference in New Issue