mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-13 21:56:11 +00:00
Fix user selection dialog
Artwork wasn't displaying for Isengard
This commit is contained in:
parent
f2e68797f6
commit
1c450cb257
3 changed files with 9 additions and 5 deletions
|
@ -65,7 +65,7 @@ class ConnectManager(object):
|
||||||
|
|
||||||
def get_server(self, server):
|
def get_server(self, server):
|
||||||
self.state = self._connect.connectToAddress(server)
|
self.state = self._connect.connectToAddress(server)
|
||||||
return self.state
|
return self.get_state()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_address(cls, server):
|
def get_address(cls, server):
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import xbmc
|
||||||
import xbmcgui
|
import xbmcgui
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
@ -30,6 +31,7 @@ class UsersConnect(xbmcgui.WindowXMLDialog):
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|
||||||
|
self.kodi_version = int(xbmc.getInfoLabel('System.BuildVersion')[:2])
|
||||||
xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
|
xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
|
||||||
|
|
||||||
def set_server(self, server):
|
def set_server(self, server):
|
||||||
|
@ -58,12 +60,14 @@ class UsersConnect(xbmcgui.WindowXMLDialog):
|
||||||
|
|
||||||
self.setFocus(self.list_)
|
self.setFocus(self.list_)
|
||||||
|
|
||||||
@classmethod
|
def _add_listitem(self, label, user_id, user_image):
|
||||||
def _add_listitem(cls, label, user_id, user_image):
|
|
||||||
|
|
||||||
item = xbmcgui.ListItem(label)
|
item = xbmcgui.ListItem(label)
|
||||||
item.setProperty('id', user_id)
|
item.setProperty('id', user_id)
|
||||||
|
if self.kodi_version > 15:
|
||||||
item.setArt({'Icon': user_image})
|
item.setArt({'Icon': user_image})
|
||||||
|
else:
|
||||||
|
item.setIconImage(user_image)
|
||||||
|
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<!-- Device settings -->
|
<!-- Device settings -->
|
||||||
<setting type="sep" />
|
<setting type="sep" />
|
||||||
<setting id="deviceNameOpt" label="30504" type="bool" default="false" />
|
<setting id="deviceNameOpt" label="30504" type="bool" default="false" />
|
||||||
<setting id="deviceName" label="30016" type="text" default="Kodi" visible="eq(-1,true)" />
|
<setting id="deviceName" label="30016" type="text" default="Kodi" visible="eq(-1,true)" subsetting="true" />
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
<category label="30506"><!-- Sync Options -->
|
<category label="30506"><!-- Sync Options -->
|
||||||
|
|
Loading…
Reference in a new issue