Script history question

You have a question or need an advice about how to do something? Ask it here!
Post Reply
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Script history question

Post by hdradio »

I need a script to have it's own history.
For example I have a script "MorningA" for everyday 05-07am. I am using filters to query tracks from a media library.
I don't care if a song was on air last night at 08pm.
I read that script history only checks for filenames. So a song "Abba - Title1" is different to "Abba - Title2".
So there is possibility to play those tracks back to back.
I think that I have to also use Global history that does more checks.
What script options do I have to use for my script ?
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Script history question

Post by hdradio »

Example :
I have a library of pop songs. I have a ScriptA playing 05-07am those songs.
Also at 08-09pm I have a ScriptB that also plays pop songs.
If I use the global history for both scripts if a song was onair in the morning it won't be available at night (and the opposite).
That's why I need an independent history for ScriptA and ScriptB.
But I need also the strict checking that global history has.
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Script history question

Post by hdradio »

A solution I am thinking is :
Set Script Max History to 180 (about 30 songs the two hours * 6 days). So the same song will not play that hour in less than 6 days.
Set Global History any value greater than 30. So additional strict checks will apply to the last 30 songs.
In script lines I 'll let all the options unchecked.
Is that correct ?
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Script history question

Post by radio42 »

That sounds it might work.

But I might also think of extending the existing script history with the same features as the global history.
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Script history question

Post by hdradio »

That will be great !
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Script history question

Post by radio42 »

I do not fully understand the question.
The options are known I guess - you can either suppress history checks or not.

Bot why does your script needs its own history?
From your description this is not clear.

What is not working with the global history?
What exact requirements do you have.
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Script history question

Post by radio42 »

Added to v3.0.13.0! - see 'News and Announcements'

Post Reply