You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
unidecode
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
libcache
|
||||
log95
|
||||
log95
|
||||
unidecode
|
||||
Reference in New Issue
Block a user