mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-09-11 21:47:09 +03:00
Fix setting video subtitle in URL
This commit is contained in:
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
Block a user