mirror of https://github.com/Chocobozzz/PeerTube
Fix setting video subtitle in URL
parent
6f3deaee2e
commit
f2b4f409a3
|
@ -797,6 +797,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
|||
startTime,
|
||||
stopTime: urlOptions.stopTime,
|
||||
|
||||
subtitle: urlOptions.subtitle,
|
||||
|
||||
embedUrl: video.embedUrl,
|
||||
embedTitle: video.name,
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue