Skip to Content
It is currently December 6th, 2023, 12:49 pm

All times are UTC - 6 hours [ DST ]




 [ 2 posts ] 
Author Message
PostPosted: January 7th, 2019, 12:31 pm 
Offline
Senior User
Senior User

Joined: December 12th, 2011, 1:21 pm
Posts: 120
On the event scheduler how can I play a category in ascending order so it goes through the category and starts at the begging again when it is finished?

I currently have...
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
{# Add files to queue script #}
Cat['Pastor Philip Critchlow'].QueueTop(smLRP, NoRules);


What can I add to make it do this?

_________________
http://godspeaksinternetradio.com/
GOOD - Music that employs life, deliverance, & restoration - COMPLETE. :-)


Top
 Profile  
 
PostPosted: January 7th, 2019, 1:57 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
You could trick SAM into using your preferred order by once playing all the tracks in the order you want them and then picking by least recently played logic.
Just make sure that neither you manually nor any Event Scheduler/PAL Script or any other line of your rotation rules will ever pick from that category or the order of played dates will not align with your manual sorting anymore.

If you don't want to use that trick, you could still use a PAL script to enforce that order. You need to know the SQL dialect corresponding to your database engine, though (That's either MySQL or IBSQL for Firebird).

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
 
Display posts from previous:  Sort by  
 [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group