mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-17 21:56:13 +00:00
Follow up for audio subs pref
This commit is contained in:
parent
983978dc33
commit
4d28f2a878
2 changed files with 18 additions and 5 deletions
|
@ -15,6 +15,7 @@ import KodiMonitor
|
|||
import Utils as utils
|
||||
from ClientInformation import ClientInformation
|
||||
from DownloadUtils import DownloadUtils
|
||||
from Player import Player
|
||||
|
||||
|
||||
class UserClient(threading.Thread):
|
||||
|
@ -152,6 +153,7 @@ class UserClient(threading.Thread):
|
|||
|
||||
def setUserPref(self):
|
||||
|
||||
player = Player()
|
||||
server = self.getServer()
|
||||
userId = self.getUserId()
|
||||
addon = self.addon
|
||||
|
@ -164,6 +166,9 @@ class UserClient(threading.Thread):
|
|||
addon.setSetting('Audiopref', audio)
|
||||
addon.setSetting('Subspref', subs)
|
||||
|
||||
# Set the setting in Player
|
||||
player.setAudioSubsPref(audio.encode('utf-8'), subs.encode('utf-8'))
|
||||
|
||||
self.logMsg("Audio preference: %s" % audio, 2)
|
||||
self.logMsg("Subtitles preference: %s" % subs, 2)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue