diff --git a/files/templates/orgy.html b/files/templates/orgy.html index 4f1e3d973..f70a574fa 100644 --- a/files/templates/orgy.html +++ b/files/templates/orgy.html @@ -25,9 +25,9 @@ {% elif orgy.type == 'file' %} - {% set subtitles_path = 'files/assets/' ~ orgy.data.split('/')[-1].split('.')[0] ~ '.vtt' %} - {% if os_path.exists(subtitles_path) %} - + {% set subtitles_url = '/assets/' ~ orgy.data.split('/')[-1].split('.')[0] ~ '.vtt' %} + {% if os_path.exists('files' ~ subtitles_url) %} + {% endif %}