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,
|
startTime,
|
||||||
stopTime: urlOptions.stopTime,
|
stopTime: urlOptions.stopTime,
|
||||||
|
|
||||||
|
subtitle: urlOptions.subtitle,
|
||||||
|
|
||||||
embedUrl: video.embedUrl,
|
embedUrl: video.embedUrl,
|
||||||
embedTitle: video.name,
|
embedTitle: video.name,
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue