From 76753e2fee7c8c01747313a0dbfa3a1d9bcfb22f Mon Sep 17 00:00:00 2001 From: bassdart Date: Sun, 17 Feb 2019 22:11:44 +0100 Subject: [PATCH] fix main artist, country artist and "more from..." lists --- default.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/default.py b/default.py index cacff4e..c0be3f6 100644 --- a/default.py +++ b/default.py @@ -510,11 +510,24 @@ def sortArtists(channel=""): result.append(entry) else: result.append(entry) - + # show artist + elif channel != "": + fanart = getFanart(channel) + for entry in data: + artists_upper = [unidecode(artist.upper()) for artist in entry['artists']] + + if channel in artists_upper: + if videoselection == "0": + if "true" in entry['official'].lower(): + result.append(entry) + elif videoselection == "1": + if "false" in entry['official'].lower(): + result.append(entry) + else: + result.append(entry) result.sort(key=lambda entry: entry['title'].upper()) for entry in result: -# xbmc.log(msg=url, level=xbmc.LOGNOTICE) addVideo(entry) endOfDirectory()