mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 23:39:15 +02:00
adjust where the cut is
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user