Playlist Look Ahead

You have a question or need an advice about how to do something? Ask it here!
Post Reply
User avatar
dokos
Posts: 45
Joined: 08 May 2012 13:53
Location: Slovensko
Contact:
Playlist Look Ahead

Post by dokos »

Hi Bernd

When I use the scheduler control and Script I have a playlist in the presence of a jingle Dj Show, which together have 120 min.
In the program I selected playlist to look ahead 20 tracks.
After reading the script I repeated several times set playlist.

How to set up that it was only once in the playlist?

Thank you for your answer

Marian
Attachments
proff1.jpg
proff1.jpg (94.6 KiB) Viewed 6226 times
proff2.jpg
proff2.jpg (150.91 KiB) Viewed 6226 times
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Playlist Look Ahead

Post by radio42 »

If I understand you correctly, you want, that the above 'Script' is only logically executed once.

Note, that a script is 'looped' if it reached the end.
Meaning, when the Scheduler executes a Program, a new playlist window is opened and the Script assigned to the Propgram is now assigned to that Playlist.
As such, the Playlist will actually trigger the execution of the related Script.
As you have defined the 'Look Ahead' option to 20, this means, that initially the Playlist wants to 'have' 20 playlist entries.
As such the Script is executed up until these 20 entries are available.

Your Script now 'only' contains your effective script-line 1 to 5.
Meaning after all these script-lines have been executed for the first time - this would only result in 5 playlist entries...so the Playlist would 'ask' for another 15 entries...as such the Script is 'looped' from the beginning (resp. the defined 'LoopLine' value of the Script).

To overcome this, please do the following:

1) add an additional script-line (line #6 in your case) to your Script, e.g. add
6. Random, SomeMediaLib, Count=1

2) Now set the 'Loop Line' parameter of your Script to '6' !

This will ensure, that the script-lines 1 - 5 are only executed once and are not looped.
User avatar
dokos
Posts: 45
Joined: 08 May 2012 13:53
Location: Slovensko
Contact:
Re: Playlist Look Ahead

Post by dokos »

Super thanks for the answer :-)

Marian

Post Reply