unidecode

This commit is contained in:
2025-08-31 19:22:41 +02:00
parent 4a2a5b280d
commit 129000ffa5
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -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