Skip to content

Commit 94ba286

Browse files
committed
Set {P} to empty when it and {C} are both 1 to prevent Track 1 of 1 messages
1 parent d5b5f0c commit 94ba286

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dynamic_RDS.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,8 @@ function getRDSStyleGuideHTML(): string {
563563
<li>{L} = Track Length as 0:00</li></ul>
564564
Main Playlist Section Values
565565
<ul><li>{C} = Item count in Main Playlist section</li>
566-
<li>{P} = Item position or number in Main Playlist section</li></ul>
566+
<li>{P} = Item position or number in Main Playlist section</li>
567+
<ul><li>Note: {P} is set empty when it and {C} are both 1 to prevent &quot;Track 1 of 1&quot; messages</li></ul></ul>
567568
Any static text can be used<br />
568569
| (pipe) will split between RDS groups, like a line break<br />
569570
[ ] creates a subgroup such that if <b>ANY</b> substitution in the subgroup is empty, the entire subgroup is omitted<br />

Dynamic_RDS_Engine.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ def excessive(msg, *args, **kwargs):
294294
elif line[0] == 'P':
295295
logging.debug('Processing playlist position')
296296
rdsValues['{P}'] = line[1:]
297+
if rdsValues['{P}'] == '1' && rdsValues['{C}'] == '1':
298+
rdsValues['{P}'] = ''
297299
pendingPlaylistUpdate = True
298300
lastUpdateTime = time.monotonic()
299301

0 commit comments

Comments
 (0)