From 0923b649e7d351edc0e44c18d6986f6cce5db18d Mon Sep 17 00:00:00 2001 From: im85288 Date: Mon, 11 May 2015 14:02:34 +0100 Subject: [PATCH] backdrop fix for albums/songs --- resources/lib/API.py | 4 +++- resources/lib/WriteKodiMusicDB.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/API.py b/resources/lib/API.py index 40794571..f13c0de9 100644 --- a/resources/lib/API.py +++ b/resources/lib/API.py @@ -332,7 +332,7 @@ class API(): if(data.get("ImageTags") != None and data.get("ImageTags").get(type) != None): imageTag = data.get("ImageTags").get(type) - if (data.get("Type") == "Episode" or data.get("Type") == "Season" or data.get("Type") == "MusicAlbum") and type=="Logo": + if (data.get("Type") == "Episode" or data.get("Type") == "Season" or data.get("Type") == "MusicAlbum" or data.get("Type") == "Audio") and type=="Logo": imageTag = data.get("ParentLogoImageTag") if (data.get("Type") == "Episode" or data.get("Type") == "Season") and type=="Art": imageTag = data.get("ParentArtImageTag") @@ -341,6 +341,8 @@ class API(): if (data.get("Type") == "Season") and originalType=="Thumb3" and imageTag=="e3ab56fe27d389446754d0fb04910a34" : imageTag = data.get("ParentThumbImageTag") id = data.get("SeriesId") + if (data.get("Type") == "MusicAlbum" or data.get("Type") == "Audio") and type=="Backdrop": + id = data.get("ParentBackdropItemId") query = "" height = "10000" diff --git a/resources/lib/WriteKodiMusicDB.py b/resources/lib/WriteKodiMusicDB.py index 5bca29c8..2847e7c7 100644 --- a/resources/lib/WriteKodiMusicDB.py +++ b/resources/lib/WriteKodiMusicDB.py @@ -1,5 +1,5 @@ ################################################################################################# -# WriteKodiVideoDB +# WriteKodiMusicDB #################################################################################################