Fix setting video subtitle in URL

pull/6357/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, startTime,
stopTime: urlOptions.stopTime, stopTime: urlOptions.stopTime,
subtitle: urlOptions.subtitle,
embedUrl: video.embedUrl, embedUrl: video.embedUrl,
embedTitle: video.name, embedTitle: video.name,

View File

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