fix main artist, country artist and "more from..." lists

This commit is contained in:
bassdart 2019-02-17 22:11:44 +01:00
parent 8e4ff16741
commit 76753e2fee

View file

@ -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()