mirror of https://github.com/calzoneman/sync.git
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}"
|
vid=#{data.meta.gdrive_subtitles.vid}"
|
||||||
kind: 'subtitles'
|
kind: 'subtitles'
|
||||||
srclang: subt.lang
|
srclang: subt.lang
|
||||||
label: subt.name
|
label: subt.name or subt.lang_original
|
||||||
).appendTo(video)
|
).appendTo(video)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -530,7 +530,7 @@
|
||||||
src: "/gdvtt/" + data.id + "/" + subt.lang + "/" + subt.name + ".vtt?vid=" + data.meta.gdrive_subtitles.vid,
|
src: "/gdvtt/" + data.id + "/" + subt.lang + "/" + subt.name + ".vtt?vid=" + data.meta.gdrive_subtitles.vid,
|
||||||
kind: 'subtitles',
|
kind: 'subtitles',
|
||||||
srclang: subt.lang,
|
srclang: subt.lang,
|
||||||
label: subt.name
|
label: subt.name || subt.lang_original
|
||||||
}).appendTo(video);
|
}).appendTo(video);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue