Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/radios/radio_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ async def countries(

for country in countries:
country["code"] = country["name"]
if resolved_country := pycountry.countries.get(alpha_2=country["name"]):
# https://github.com/frenck/python-radios/issues/19
if country["name"] == "XK":
country["name"] = "Kosovo"
elif resolved_country := pycountry.countries.get(alpha_2=country["name"]):
country["name"] = resolved_country.name

# Because we enrichted the countries we need to re-order in this case
Expand Down