fix main artist, country artist and "more from..." lists
This commit is contained in:
parent
8e4ff16741
commit
76753e2fee
1 changed files with 15 additions and 2 deletions
15
default.py
15
default.py
|
@ -510,11 +510,24 @@ def sortArtists(channel=""):
|
||||||
result.append(entry)
|
result.append(entry)
|
||||||
else:
|
else:
|
||||||
result.append(entry)
|
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())
|
result.sort(key=lambda entry: entry['title'].upper())
|
||||||
for entry in result:
|
for entry in result:
|
||||||
# xbmc.log(msg=url, level=xbmc.LOGNOTICE)
|
|
||||||
addVideo(entry)
|
addVideo(entry)
|
||||||
endOfDirectory()
|
endOfDirectory()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue