mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-12 03:06:13 +00:00
Updates project structure to Kodi v17
This commit is contained in:
parent
31aa2073ad
commit
b355d746f9
8 changed files with 24 additions and 14 deletions
|
@ -209,10 +209,12 @@ def directory(label, path, folder=True, artwork=None, fanart=None, context=None)
|
|||
|
||||
def dir_listitem(label, path, artwork=None, fanart=None):
|
||||
|
||||
''' Gets the icon paths for default node listings
|
||||
'''
|
||||
li = xbmcgui.ListItem(label, path=path)
|
||||
li.setThumbnailImage(artwork or "special://home/addons/plugin.video.jellyfin/icon.png")
|
||||
li.setArt({"fanart": fanart or "special://home/addons/plugin.video.jellyfin/fanart.png"})
|
||||
li.setArt({"landscape": artwork or fanart or "special://home/addons/plugin.video.jellyfin/fanart.png"})
|
||||
li.setThumbnailImage(artwork or "special://home/addons/plugin.video.jellyfin/resources/icon.png")
|
||||
li.setArt({"fanart": fanart or "special://home/addons/plugin.video.jellyfin/resources/fanart.png"})
|
||||
li.setArt({"landscape": artwork or fanart or "special://home/addons/plugin.video.jellyfin/resources/fanart.png"})
|
||||
|
||||
return li
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue