Follow up for audio subs pref

This commit is contained in:
angelblue05 2015-06-11 03:17:48 -05:00
parent 983978dc33
commit 4d28f2a878
2 changed files with 18 additions and 5 deletions

View file

@ -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)