diff --git a/radioPlayer.py b/radioPlayer.py index 8eb9ebd..d399555 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -5,7 +5,7 @@ import subprocess import time, datetime import sys import threading -import json, re +import json, re, unidecode from datetime import datetime import log95 @@ -171,6 +171,9 @@ def update_rds(track_name: str): else: artist = rds_default_artist title = name + + title = unidecode.unidecode(title) + artist = unidecode.unidecode(artist) title = re.sub(r'\s*[\(\[][^\(\)\[\]]*[\)\]]', '', title) # there might be junk diff --git a/requirements.txt b/requirements.txt index b2e508d..a5a0658 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ libcache -log95 \ No newline at end of file +log95 +unidecode \ No newline at end of file