Merge pull request #1167 from schobiDotDev/fix/subtitle-addon-label
Some checks are pending
Build / build (push) Waiting to run

fix: use addon-provided subtitle label instead of URL
This commit is contained in:
Timothy Z. 2026-03-22 15:07:06 +02:00 committed by GitHub
commit effa6e430e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -369,7 +369,7 @@ const Player = ({ urlParams, queryParams }) => {
subtitles: Array.isArray(player.selected.stream.subtitles) ?
player.selected.stream.subtitles.map((subtitles) => ({
...subtitles,
label: subtitles.url
label: subtitles.label || subtitles.url
}))
:
[]
@ -406,7 +406,7 @@ const Player = ({ urlParams, queryParams }) => {
if (video.state.stream !== null) {
const tracks = player.subtitles.map((subtitles) => ({
...subtitles,
label: subtitles.url
label: subtitles.label || subtitles.url
}));
video.addExtraSubtitlesTracks(tracks);
}