From 71190b08a31470f90854a0b1b90c1c800d9aaa37 Mon Sep 17 00:00:00 2001 From: bassdart Date: Mon, 11 Feb 2019 18:12:36 +0100 Subject: [PATCH] fix: Don't list artists with known country also in Unknown --- default.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/default.py b/default.py index d3d029f..bd6fb15 100644 --- a/default.py +++ b/default.py @@ -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