adjust where the cut is

This commit is contained in:
2026-04-24 22:23:38 +02:00
parent b8956ebea3
commit 2e54369c1a
+3 -1
View File
@@ -70,7 +70,7 @@ def update_rds(track_name: str):
# title = re.sub(r'\s*[\(\[][^\(\)\[\]]*[\)\]]', '', title) # there might be junk
prt = rds_base.format(artist, title)[:64]
prt = rds_base.format(artist, title)
rtp = []
rtp.append(1) # type 2
rtp.append(prt.find(title)) # start 2
@@ -83,6 +83,8 @@ def update_rds(track_name: str):
rtp = ','.join(list(map(str, rtp)))
prt = prt[:64]
try:
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as f:
f.settimeout(1.0)