Note that this Wiki is a work in progress, items may not be updated or may disappear entirely as the pages are updated.
Scheduling a regular show, to play in sequence
From SpacialAudio
Comments:
This script is designed to play a series of episodes, in this case
Chicken Man. Numbers 1 to 97. Each episode is preceeded by the
chickenman intro, and followed by chickenman outro. At various times
there are chickenman promos played in the current music stream.
The important point being the ability to sequence each show so that
even in the event of a power outage - of any duration - the script
will ensure that the correct show in the sequence is played. It will
not simply restart from show number 1. Nor will it play random
epsiodes - which at the least would be confusing to the listener!
The script relies on a number of static things being in place:
1. The episodes are loaded into the songlist in strict order so that
their IDs are in strict order. This means that it is unlikely that
you can add episodes at a later date. When PAL has decent substring
handling, then this script can be changed to use the file_name_num,
not the ID. Unless I think of something meantime. So with shows like
Elberts storylines, this will not work as shows are added at
different times, and thus will end up with non sequential IDs.
2. The script relies on a table being added to SAMDB, in my case called
'chickenman' with one field called 'chickenID' that is the same
structure as the ID field in songlist. That is, mediumint(9).
You may download the script here. http://spacialnet.com/knowledge/attachment.php?attId=61
