From 2682a7617ddc68807bfd4b9f463e1a3b42c54e3b Mon Sep 17 00:00:00 2001 From: im85288 Date: Tue, 5 May 2015 15:41:48 +0100 Subject: [PATCH] include the first backdrop in extrafanart --- resources/lib/MainModule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/MainModule.py b/resources/lib/MainModule.py index e1d090cd..1484ff4b 100644 --- a/resources/lib/MainModule.py +++ b/resources/lib/MainModule.py @@ -268,9 +268,9 @@ def getExtraFanArt(): item = ReadEmbyDB().getFullItem(embyId) if item != None: if item.has_key("BackdropImageTags"): - if(len(item["BackdropImageTags"]) > 1): + if(len(item["BackdropImageTags"]) > 0): totalbackdrops = len(item["BackdropImageTags"]) - for index in range(1,totalbackdrops): + for index in range(0,totalbackdrops): backgroundUrl = API().getArtwork(item, "Backdrop",str(index)) fanartFile = os.path.join(fanartDir,"fanart" + str(index) + ".jpg") li = xbmcgui.ListItem(str(index), path=fanartFile)