From 6ffd7fb4915d1971b39ad6bc2278ac4189a93ea7 Mon Sep 17 00:00:00 2001 From: im85288 Date: Sun, 9 Aug 2015 16:44:02 +0100 Subject: [PATCH] added user image property for skins to use --- addon.xml | 2 +- resources/lib/UserClient.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index 47387f69..20626c66 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/UserClient.py b/resources/lib/UserClient.py index 104bc337..c1f04aff 100644 --- a/resources/lib/UserClient.py +++ b/resources/lib/UserClient.py @@ -16,6 +16,7 @@ import Utils as utils from ClientInformation import ClientInformation from DownloadUtils import DownloadUtils from Player import Player +from API import API class UserClient(threading.Thread): @@ -180,6 +181,9 @@ class UserClient(threading.Thread): self.logMsg("Audio preference: %s" % audio, 2) self.logMsg("Subtitles preference: %s" % subs, 2) + # Set user image for skin display + self.WINDOW.setProperty("EmbyUserImage",API().getUserArtwork(result,"Primary")) + return True def getPublicUsers(self):