Use lang_original if subtitle name is empty
This commit is contained in:
parent
174ad8d81e
commit
4a0cbce575
|
@ -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)
|
||||
)
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue