fix: Don't list artists with known country also in Unknown
This commit is contained in:
parent
b572f564c9
commit
71190b08a3
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue