Hi Mark,
Your script looks ok to me and should indeed behave as you described.
Do you have logs of the script when it is running? Also, have you tried to
just output the jingle source to see if they aren't repeated when not under
the rotate umbrella?
Romain
2016-05-02 18:31 GMT-05:00 Mark Jeghers <[email protected]>:
> I have what is **supposed** to be my main playlist, with a jingle every 4
> songs. The playlist for jingles has four entries, so I am expecting to
> hear a different one of the 4 jingles after each 4 songs…
>
>
>
> For example…
>
> Song 1 -> song 2 -> song 3 -> song 4 -> jingle 1 -> and then…
>
>
>
> Song 5 -> song 6 -> song 7 -> song 8 -> jingle 2 … etc etc
>
>
>
> But instead, I am always hearing the last of the 4 jingles after every 4th
> song. Why is it not cycling thru the list of jingles? Here is my config…
>
>
>
> # fixed list of 4 jingles
>
> playlistJingles =
> audio_to_stereo(playlist("playlists/jingles-playlist.txt"))
>
>
>
> # for the main playlist of songs, use
>
> # dynamic song selection with my external script
>
> def crimson_request_function() =
>
> result = list.hd(get_process_lines("./next_song.sh
> playlists/crimson-playlist.txt"))
>
> log("Next song "^result)
>
> request.create(result)
>
> end
>
>
>
> plc = request.dynamic(crimson_request_function)
>
> plc = *rotate*(weights=[1,4], [playlistJingles, plc])
>
> # rotate should not randomize the jingles, correct?
>
>
>
> output.icecast(
>
> %mp3(bitrate=96, id3v2=true),
>
> host="localhost", port=8000, password="password",
>
> mount="/crimson", genre="Christian Blues",
>
> description="Crimson Blues and more",
>
> url="http://www.t4p.com:8000/crimson",
>
> mksafe(plc))
>
>
>
> Any help appreciated,
>
> /Mark
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users