Quick question about the script below from Dolebraï. What made you
choose to put the into insertion logic into the liq script, versus the
external script that selects tracks?
# Prepend introductory tracks if necessary
intro_mix = single("/var/cache/dolebrai/local/jingles/in_vitro/DJLEmb2.mp3")
if m["prepend_track"] != "" then
elsif m["track_type"] == "mix" then
# This is more reliable than prepend_track as intro_mix is always ready
s = prepend(s, choose_prepend)
From: David Baelde <david.baelde@gm...> - 2009-04-29 11:41:48
On Wed, Apr 29, 2009 at 3:14 AM, Brandon Casci <brandon.casci@...> wrote:
> Quick question about the script below from Dolebraï. What made you
> choose to put the into insertion logic into the liq script, versus the
> external script that selects tracks?
It seemed simpler like that, I guess. That way, the track selection
script is almost stateless: you don't have to remember that you need
to send a given track next time because you sent its jingle; all you
rely on is the times of last playout. Also, it avoids that the jingle
is played and then the track fails (but note that the track can be
played even if the jingle fails).
Hope that helps guiding your choices.