From 129000ffa573c4043fbda670722953b1226fcb5c Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 31 Aug 2025 19:22:41 +0200 Subject: [PATCH] unidecode --- radioPlayer.py | 5 ++++- requirements.txt | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) 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