mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-06 02:30:50 -08:00
Fix resetting client region when playing media with subtitles enabled
This commit is contained in:
parent
884f76ddf0
commit
1c1b3ce7db
1 changed files with 6 additions and 2 deletions
|
|
@ -80,7 +80,12 @@ class Subtitles(YouTubeRequestClient):
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, context, video_id, use_mpd=None):
|
def __init__(self, context, video_id, use_mpd=None):
|
||||||
super(Subtitles, self).__init__(context=context)
|
settings = context.get_settings()
|
||||||
|
super(Subtitles, self).__init__(
|
||||||
|
context=context,
|
||||||
|
language=settings.get_language(),
|
||||||
|
region=settings.get_region(),
|
||||||
|
)
|
||||||
|
|
||||||
self.video_id = video_id
|
self.video_id = video_id
|
||||||
|
|
||||||
|
|
@ -90,7 +95,6 @@ class Subtitles(YouTubeRequestClient):
|
||||||
self.caption_tracks = None
|
self.caption_tracks = None
|
||||||
self.translation_langs = None
|
self.translation_langs = None
|
||||||
|
|
||||||
settings = context.get_settings()
|
|
||||||
self.pre_download = settings.subtitle_download()
|
self.pre_download = settings.subtitle_download()
|
||||||
self.sub_selection = settings.get_subtitle_selection()
|
self.sub_selection = settings.get_subtitle_selection()
|
||||||
stream_features = settings.stream_features()
|
stream_features = settings.stream_features()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue