fix subtitles

pull/214/head
Aevann 2023-10-13 00:22:59 +03:00
parent ea19c27960
commit 15351cf6d3
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +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' %}
{% set subtitles_path = '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 %}