Time Of Day - Scripting Restriction

You have a question or need an advice about how to do something? Ask it here!
Post Reply
inl_inc
Posts: 76
Joined: 12 Dec 2013 18:42
Time Of Day - Scripting Restriction

Post by inl_inc »

A bit confused with the Time of Day scripting restriction results.

From my understanding Scripting Restrictions define the time period when the track is not to be played. JJ Cale-Magnolia was entered as 8pm to 4am ... and the result i was looking for is that this track would be allowed to play from 4:01AM to 7:59PM (range includes noon but not midnight)

In the screenshot below - you can see JJ Cale Magnolia scheduled for 00:02 (midnight). If I want to restrict this track to only play between 4AM and 8PM (i.e. daytime) what steps should i take
time_of_day_exlusion.jpg
time_of_day_exlusion.jpg (120.34 KiB) Viewed 8294 times
User avatar
radio42
Site Admin
Posts: 9141
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Time Of Day - Scripting Restriction

Post by radio42 »

Currently the TimeStart value must be smaller than the TimeEnd value.
But I can take a look to also allow your current setting in the next version!

In the meantime...
As the scripting restriction is (as the name suggests) more to be used as a restriction instead to define 'when exactly' something should be played, I would use a totally different approach and not use the scripting restriction for that.

So if you want certain tracks to ONLY play at a certain time, you might simply use that at that time within a program/script being played used at that time. E.g. assume you define a program/script which is supposed to play between 4AM and 8AM, you might create either a dedicated media lib containing only those tracks to played at that time and then reference/use that media lib in that script.
Or, if you don't want to create a related media lib, you might also use any of the existing meta data attributes to identify those tracks and then use a related filter condition. E.g. something like: Grouping contains 'afternoon'.
inl_inc
Posts: 76
Joined: 12 Dec 2013 18:42
Re: Time Of Day - Scripting Restriction

Post by inl_inc »

As you suggested, I've been using a conditional filtering to achieve basic day parting.

I was very much looking forward to switching to the new Scripting Restrictions for advanced day parting. Since it offers more controls other than simply time (i use month and day of the week restrictions), also all of the day parting info is conveniently located in a single window.

I was kinda hoping that setting a restriction would effectively be equivalent to allowing values other than restricted ones to be selected (i.e. restricting from selecting X=true, should effectively only allow X=false).

Anyways, I still don't understand why a track that was restricted from being played between 8PM and 4AM was allowed to be queued at midnight? Are you able to replicate this on your end?
User avatar
radio42
Site Admin
Posts: 9141
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Time Of Day - Scripting Restriction

Post by radio42 »

Please see the first sentence in my above post for an explanation why this is currently not working.
User avatar
radio42
Site Admin
Posts: 9141
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Time Of Day - Scripting Restriction

Post by radio42 »

In the new v4.0.0.17 the above mentioned limit doesn't exist anymore!
Meaning you can now define a restriction time range where the 'From' time is larger than the 'To' time (e.g. from 8:00 PM to 4:00 AM)!
inl_inc
Posts: 76
Joined: 12 Dec 2013 18:42
Re: Time Of Day - Scripting Restriction

Post by inl_inc »

Thank you so so so much. Really appreciate you taking the time to make this change!

Post Reply