Note that this Wiki is a work in progress, items may not be updated or may disappear entirely as the pages are updated.

Enforcing rules on Station IDs, Promos

From SpacialAudio

Jump to: navigation, search

This script shows how to Enforce playlist rotation rules on Station IDs. Generally these rules can not be enforced simply because most stations only have a few IDs in rotation and can thus not satisfy the rules.

In this script we lower the required minimum times to better suit Station IDs. After we are done we put them back to their original values.


procedure PutSweeper(Category : String);
var
 OldArtist, OldSong : Integer; 
begin
  OldArtist := PlaylistRules.MinArtistTime;
  OldSong := PlaylistRules.MinSongTime;
 
  PlaylistRules.MinArtistTime := 0;
  PlaylistRules.MinSongTime   := 10;
 
  CAT[Category].QueueTop(smLemmingLogic,EnforceRules);
 
  PlaylistRules.MinArtistTime := OldArtist;
  PlaylistRules.MinSongTime   := OldSong;
end;
PAL.Loop := True;
PAL.WaitForPlayCount(3);
PutSweeper('Station IDs (All)');