Use lang_original if subtitle name is empty

This commit is contained in:
calzoneman 2015-07-25 11:46:18 -07:00
parent 174ad8d81e
commit 4a0cbce575
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player
vid=#{data.meta.gdrive_subtitles.vid}"
kind: 'subtitles'
srclang: subt.lang
label: subt.name
label: subt.name or subt.lang_original
).appendTo(video)
)

View file

@ -530,7 +530,7 @@
src: "/gdvtt/" + data.id + "/" + subt.lang + "/" + subt.name + ".vtt?vid=" + data.meta.gdrive_subtitles.vid,
kind: 'subtitles',
srclang: subt.lang,
label: subt.name
label: subt.name || subt.lang_original
}).appendTo(video);
});
}