Interval Playlist during sheduled or immediate playlists

Read 4825 times
Well as in Subject.

I think it won't be so difficult to add option 'play tracks from interval playlists' when creating sheduled or immediate playlist.

I know there are sometimes situations when sheduled playlist is running but during that time I would like to play tracks from interval playlists as well, like station identyfication but sometimes i may not need that.

For now as I remeber tracks from interval playlists are not played when running playlists is different than 'general playlists'

Regards
Headshaker ;)
- removed, please do not hijack threads -
Last Edit: February 14, 2013, 05:30:52 pm by Centova - Steve B.
I think it won't be so difficult to add option 'play tracks from interval playlists' when creating sheduled or immediate playlist.
There is actually already an experimental feature to allow this, although (as I said) it's experimental, and there is currently no UI for it so you can only administer it via the MySQL console.  So it's not for the feint of heart, but if you want to try it...

First, you need your the account ID for the account you want to enable it on.  Get that by running:

Code: [Select]
SELECT id FROM accounts WHERE username='_USERNAME_';
Replace _USERNAME_ with the actual username of the account.

Then, run the following queries:
Code: [Select]
DELETE FROM playlist_priorities WHERE accountid=_ACCOUNTID_;
INSERT INTO playlist_priorities (type,accountid) VALUES
('now',_ACCOUNTID_),
('scheduled',_ACCOUNTID_),
('interval',_ACCOUNTID_),
('request',_ACCOUNTID_);

Replace _ACCOUNTID_ with the account ID you looked up above.

The now/scheduled/interval/request lines represent the priority of playlists of those types.  So in the above (default) order, 'now' (immediate) playlists override everything, then 'scheduled' override everything else, and finally 'interval' playlists override tracks requested via the song request form.  General rotation playlists are always used last -- all other playlist types always override them.

So as an example, to do what you wanted (interval overriding scheduled), assuming your account ID was 9999, you would use:

Code: [Select]
DELETE FROM playlist_priorities WHERE accountid=9999;
INSERT INTO playlist_priorities (type,accountid) VALUES
('now',9999),
('interval',9999),
('scheduled',9999),
('request',9999);

As you can see, I've moved 'interval' up above 'scheduled'.  (It's complicated to explain, but easy to do. :) )

It's not received much testing which is why there is no UI yet, but the plan is to eventually make this configurable in the account settings.

HTH..
Also FYI, using an account ID of 0 sets the default order of priority for ALL accounts on the server.  Use with caution as this is (again) an experimental feature and may break stuff.
Great, I'll check that this weekend.

SO assuming, if I will put interval above scheduled then when scheduled is playing interval should interrupt it, but what after end of interval ? Is it going back to scheduled ?
Again this has received minimal testing so it may totally break, but yes, the intended operation is to resume the scheduled playlist immediately after the interval playlist runs, and continue as if it hadnt been interrupted at all.