This commit is contained in:
Fabio Manganiello 2019-02-19 01:05:44 +01:00
parent 8f8b28912c
commit 151e2e56d9
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ $(document).ready(function() {
if (subtitlesConf) { if (subtitlesConf) {
populateSubtitlesModal(resource).then((subs) => { populateSubtitlesModal(resource).then((subs) => {
if ('language' in subtitlesConf) { if ('language' in subtitlesConf) {
if (subs && sub.length) { if (subs && subs.length) {
downloadSubtitles(subs[0].SubDownloadLink, resource).then((subtitles) => { downloadSubtitles(subs[0].SubDownloadLink, resource).then((subtitles) => {
_play(resource, subtitles).finally(onVideoReady); _play(resource, subtitles).finally(onVideoReady);
resolve(resource, subtitles); resolve(resource, subtitles);