fix: Don't list artists with known country also in Unknown

This commit is contained in:
bassdart 2019-02-11 18:12:36 +01:00
parent b572f564c9
commit 71190b08a3

View file

@ -137,8 +137,8 @@ def countrycodes():
countrycode = entry['countrycode']
if countrycode != "" and countrycode not in result:
result.append(countrycode)
elif countrycode == "" and "unknown" not in result:
result.append('unknown')
elif countrycode == "" and "Unknown" not in result:
result.append('Unknown')
result.sort()
for entry in result:
addDir(entry, '&style=country&limit=' + entry + '&start=0', 'showArtist', fanart, len(result))
@ -432,7 +432,7 @@ def showArtist(style, limit, start):
i = entry['countrycode']
if limit == i:
preresult.append(entry)
elif limit == 'unknown':
elif limit == 'Unknown' and i == "":
preresult.append(entry)
# limit the result list according to the "Video Selection" Setting