added user image property for skins to use

This commit is contained in:
im85288 2015-08-09 16:44:02 +01:00
parent fcefffb157
commit 6ffd7fb491
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.emby" <addon id="plugin.video.emby"
name="Emby" name="Emby"
version="1.1.30" version="1.1.31"
provider-name="Emby.media"> provider-name="Emby.media">
<requires> <requires>
<import addon="xbmc.python" version="2.1.0"/> <import addon="xbmc.python" version="2.1.0"/>

View file

@ -16,6 +16,7 @@ import Utils as utils
from ClientInformation import ClientInformation from ClientInformation import ClientInformation
from DownloadUtils import DownloadUtils from DownloadUtils import DownloadUtils
from Player import Player from Player import Player
from API import API
class UserClient(threading.Thread): class UserClient(threading.Thread):
@ -180,6 +181,9 @@ class UserClient(threading.Thread):
self.logMsg("Audio preference: %s" % audio, 2) self.logMsg("Audio preference: %s" % audio, 2)
self.logMsg("Subtitles preference: %s" % subs, 2) self.logMsg("Subtitles preference: %s" % subs, 2)
# Set user image for skin display
self.WINDOW.setProperty("EmbyUserImage",API().getUserArtwork(result,"Primary"))
return True return True
def getPublicUsers(self): def getPublicUsers(self):