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

fix rtp when len of title is more than 31

This commit is contained in:
2025-12-12 16:29:52 +01:00
parent db601950b8
commit 82c56f1cfe

View File

@@ -62,6 +62,10 @@ def update_rds(track_name: str):
rtp.append(1) # type 2
rtp.append(prt.find(title)) # start 2
rtp.append(len(title) - 1) # len 2
for i,(i_rt,j_size) in enumerate(zip(rtp, [255,0x3f,0x3f,255,0x3f,0x1f])):
if i_rt > j_size: rtp[i] = j_size
rtp = ','.join(list(map(str, rtp)))
try: