forked from MarseyWorld/MarseyWorld
same as last commit
parent
2ceb5fe949
commit
3be41ce7ca
|
@ -25,8 +25,7 @@
|
|||
{% elif orgy.type == 'file' %}
|
||||
<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}}">
|
||||
{% set subtitles_path = 'assets/' ~ orgy.data.split('/')[-1].split('.')[0] ~ '.vtt' %}
|
||||
{{subtitles_path}}
|
||||
{% set subtitles_path = 'files/assets/' ~ orgy.data.split('/')[-1].split('.')[0] ~ '.vtt' %}
|
||||
{% if os_path.exists(subtitles_path) %}
|
||||
<track label="English" kind="subtitles" srclang="en" src="{{subtitles_path}}" default>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue