0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00

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

View File

@@ -5,7 +5,7 @@ import subprocess
import time, datetime import time, datetime
import sys import sys
import threading import threading
import json, re import json, re, unidecode
from datetime import datetime from datetime import datetime
import log95 import log95
@@ -171,6 +171,9 @@ def update_rds(track_name: str):
else: else:
artist = rds_default_artist artist = rds_default_artist
title = name title = name
title = unidecode.unidecode(title)
artist = unidecode.unidecode(artist)
title = re.sub(r'\s*[\(\[][^\(\)\[\]]*[\)\]]', '', title) # there might be junk title = re.sub(r'\s*[\(\[][^\(\)\[\]]*[\)\]]', '', title) # there might be junk

View File

@@ -1,2 +1,3 @@
libcache libcache
log95 log95
unidecode