diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index bc1515e1..c930a0a7 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -670,6 +670,16 @@ msgctxt "#30546" msgid "Pick the first video if several versions are present" msgstr "" +# PKC Settings - Playback +msgctxt "#30547" +msgid "Who picks the audio stream on playback start?" +msgstr "" + +# PKC Settings - Playback +msgctxt "#30548" +msgid "Who picks subtitles on playback start?" +msgstr "" + # Welcome to Plex notification msgctxt "#33000" msgid "Welcome" diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index 40633d46..6ec36967 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -28,6 +28,7 @@ class KodiMonitor(xbmc.Monitor): """ PKC implementation of the Kodi Monitor class. Invoke only once. """ + def __init__(self): self._already_slept = False self._switched_to_plex_streams = True @@ -389,7 +390,10 @@ class KodiMonitor(xbmc.Monitor): if not self._switched_to_plex_streams: # We need to switch to the Plex streams ONCE upon playback start # after onavchange has been fired - item.switch_to_plex_streams() + if utils.settings('audioStreamPick') == '0': + item.switch_to_plex_stream('audio') + if utils.settings('subtitleStreamPick') == '0': + item.switch_to_plex_stream('subtitle') self._switched_to_plex_streams = True else: item.on_av_change(playerid) diff --git a/resources/settings.xml b/resources/settings.xml index cb059b9c..46066caf 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -115,6 +115,8 @@ + +