You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 06:03:52 +01:00
fix rtp when len of title is more than 31
This commit is contained in:
@@ -62,6 +62,10 @@ def update_rds(track_name: str):
|
|||||||
rtp.append(1) # type 2
|
rtp.append(1) # type 2
|
||||||
rtp.append(prt.find(title)) # start 2
|
rtp.append(prt.find(title)) # start 2
|
||||||
rtp.append(len(title) - 1) # len 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)))
|
rtp = ','.join(list(map(str, rtp)))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user