Fix setting video subtitle in URL

pull/6346/head
Chocobozzz 2024-04-11 08:39:11 +02:00
parent 6f3deaee2e
commit f2b4f409a3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 0 deletions

View File

@ -797,6 +797,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
startTime,
stopTime: urlOptions.stopTime,
subtitle: urlOptions.subtitle,
embedUrl: video.embedUrl,
embedTitle: video.name,

View File

@ -115,6 +115,8 @@ class PeerTubePlugin extends Plugin {
return
}
if (this.currentSubtitle === showing.language) return
this.currentSubtitle = showing.language
saveLastSubtitle(showing.language)
savePreferredSubtitle(showing.language)