Skip to Content
It is currently November 30th, 2023, 2:25 am

All times are UTC - 6 hours [ DST ]




 [ 4 posts ] 
Author Message
 Post subject: smPlaylistOrder
PostPosted: December 2nd, 2019, 2:54 pm 
Offline
New User
New User

Joined: October 25th, 2018, 12:48 pm
Posts: 4
Cannot find any docs on this except in the readme.

What would be the syntax?


Top
 Profile  
 
 Post subject: Re: smPlaylistOrder
PostPosted: December 2nd, 2019, 6:46 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8306
Location: Cologne (Germany)
smPlaylistOrder is an Alias for the number 8.
i.e. instead of:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
PAL.WaitForTime('+08:00:00');

You can also write this:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
PAL.WaitForTime('+0'+IntToStr(smPlaylistOrder)+':00:00');


Cool, isn't it? :P


OK jokes aside: smPlaylistOrder or the number 8 for that matter can be used together with stuff like CAT['xyz'].ChooseSong, CAT['xyz'].QueueBottom, CAT['xyz'].QueueTop
It tells each of these commands to pick the next song according to the custom order by which you sorted your category xyz. The song at the top will be picked first, then the one below that and so on. (Obviously it will skip songs that don't match your repeat rules if you tell it to EnforceRules)

They use a constant for that purpose because that is easier to remember than putting 8 in there.
It's similar to the InsertPosition for QueueDir for example (ipTop = 0, ipBottom = 1)

_________________
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  
 
 Post subject: Re: smPlaylistOrder
PostPosted: September 7th, 2020, 5:46 am 
Offline
Junior User
Junior User

Joined: April 21st, 2013, 12:27 pm
Posts: 58
Mastacheata (!empty($user->lang['WROTE'])) ? $user->lang['WROTE'] : ucwords(strtolower(str_replace('_', ' ', 'WROTE'))):
smPlaylistOrder is an Alias for the number 8.
i.e. instead of:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
PAL.WaitForTime('+08:00:00');

You can also write this:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
PAL.WaitForTime('+0'+IntToStr(smPlaylistOrder)+':00:00');


Cool, isn't it? :P


OK jokes aside: smPlaylistOrder or the number 8 for that matter can be used together with stuff like CAT['xyz'].ChooseSong, CAT['xyz'].QueueBottom, CAT['xyz'].QueueTop
It tells each of these commands to pick the next song according to the custom order by which you sorted your category xyz. The song at the top will be picked first, then the one below that and so on. (Obviously it will skip songs that don't match your repeat rules if you tell it to EnforceRules)

They use a constant for that purpose because that is easier to remember than putting 8 in there.
It's similar to the InsertPosition for QueueDir for example (ipTop = 0, ipBottom = 1)


This is an old post, but just want to ask something:
Can I use smPlaylistOrder for playing mixes during night time?
For example let's say that I stream a show of Dave Aude, but only 1 track per week.
Will SAM automatically select the next track the next week, or will it start over from scratch?

Sorry for posting in the SAM DJ section, I am currently using SAM Broadcaster v2020.5 , but I found the post about this here so decided to reply to an existing topic rather than opening up a new one. If requested, I could make a new post inside the SAM Broadcaster section and ask there.


Top
 Profile  
 
 Post subject: Re: smPlaylistOrder
PostPosted: August 31st, 2021, 10:54 pm 
Offline
Senior User
Senior User

Joined: January 2nd, 2004, 1:07 pm
Posts: 186
Location: Cordoba, Argentina
It apparently only works with Playlists (not categories) and NoRules parameter.


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 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