From dfd2b34d446d8602941df5815d42ea680e9f67aa Mon Sep 17 00:00:00 2001 From: Kuba <132459354+KubaPro010@users.noreply.github.com> Date: Thu, 9 Oct 2025 20:13:01 +0200 Subject: [PATCH] unidecode --- radioPlayer.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/radioPlayer.py b/radioPlayer.py index f544920..b4a7089 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -179,9 +179,6 @@ def process_for_rds(track_name: str): artist = rds_default_artist title = name if not has_name: logger.warning(f"File does not have a alias in the name table ({track_name})") - - title = unidecode.unidecode(title) - artist = unidecode.unidecode(artist) title = re.sub(r'\s*[\(\[][^\(\)\[\]]*[\)\]]', '', title) # there might be junk @@ -204,7 +201,7 @@ def update_rds(prt: str, rtp: str): def load_filelines(path): try: - with open(path, 'r') as f: return [line.strip() for line in f.readlines() if line.strip()] + with open(path, 'r') as f: return [unidecode.unidecode(line.strip()) for line in f.readlines() if unidecode.unidecode(line.strip())] except FileNotFoundError: logger.error(f"Playlist not found: {path}") return []