mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
set artwork for intros
This commit is contained in:
parent
504e23a3e0
commit
43be19e650
1 changed files with 12 additions and 12 deletions
|
@ -152,6 +152,7 @@ class PlaybackUtils(object):
|
||||||
|
|
||||||
pb = PlaybackUtils(intro)
|
pb = PlaybackUtils(intro)
|
||||||
pb.set_listitem(listitem)
|
pb.set_listitem(listitem)
|
||||||
|
pb.set_artwork(listitem, intro['Type'])
|
||||||
|
|
||||||
self.stack.append([url, listitem])
|
self.stack.append([url, listitem])
|
||||||
|
|
||||||
|
@ -272,14 +273,13 @@ class PlaybackUtils(object):
|
||||||
|
|
||||||
for k_art, e_art in art.items():
|
for k_art, e_art in art.items():
|
||||||
|
|
||||||
if e_art == "Backdrop" and all_artwork[e_art]:
|
if e_art == "Backdrop":
|
||||||
self._set_art(listitem, k_art, all_artwork[e_art][0])
|
self._set_art(listitem, k_art, all_artwork[e_art][0] if all_artwork[e_art] else " ")
|
||||||
else:
|
else:
|
||||||
self._set_art(listitem, k_art, all_artwork.get(e_art))
|
self._set_art(listitem, k_art, all_artwork.get(e_art, " "))
|
||||||
|
|
||||||
def _set_art(self, listitem, art, path):
|
def _set_art(self, listitem, art, path):
|
||||||
|
|
||||||
if path:
|
|
||||||
if art in ('fanart_image', 'small_poster', 'tiny_poster',
|
if art in ('fanart_image', 'small_poster', 'tiny_poster',
|
||||||
'medium_landscape', 'medium_poster', 'small_fanartimage',
|
'medium_landscape', 'medium_poster', 'small_fanartimage',
|
||||||
'medium_fanartimage', 'fanart_noindicators'):
|
'medium_fanartimage', 'fanart_noindicators'):
|
||||||
|
|
Loading…
Reference in a new issue