Hi all!
Another day, another problem ;)
Seems like fallback() in the attached script doesn't behave like it
should? Or did I something stupid?
Consider the following part:
j = delay(5., jingles)
muziek = fallback([j, radio])
final = fallback(track_sensitive=false,[live,muziek,security])
If I'm not mistaken I should work like this:
First, play one track from 'j', wait for 5 seconds before another 'j' is
ready, so it skips to 'radio'.
After one track from 'radio' it should return to 'j' and repeat the cycle.
The problem is that only one jingle plays, but then it stays at 'radio'
without returning to the beginning of fallback('j').
According to
http://savonet.sourceforge.net/doc-svn/scripts/play_every_xx.html this
is not what should happen?
When I add track_sensitive=false:
muziek = fallback([j, radio])
The music is interrupted every 5 seconds to play 'j'
Am I missing something?
--
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand
I: http://radiotwenterand.nl
E: [email protected]
#!/usr/local/bin/liquidsoap
# Log dir
set("server.telnet.bind_addr","127.0.0.1")
set("server.telnet.port",8889)
set("server.telnet",true)
set("log.file.path","/var/log/liq-radiotwenterand-dbg.log")
set("tag.encodings",["UTF-8","ISO-8859-1"])
set("harbor.bind_addr","82.94.217.218")
set("harbor.port",8445)
set("harbor.password","*")
live = input.harbor("live")
def kerst_meta(j)
rewrite_metadata([("artist", "Radio Twenterand"),
("title","Kerst met Radio Twenterand"),
("comment","http://radiotwenterand.nl")],j)
end
def jingle_meta(j)
rewrite_metadata([("artist", "Radio Twenterand"),
("title","Koop bij onze adverteerders"),
("comment","http://radiotwenterand.nl")],j)
end
myplaylist = request.dynamic({request.create(get_process_output("/usr/bin/php
-q /home/radiotwe/public_html/jukebox/includes/liquidshout.dbg.php"))})
jingles =
playlist(reload=1,reload_mode="rounds","/home/radiotwe/muziek/Jingles/")
commercials =
jingle_meta(playlist(reload=1,reload_mode="rounds","/home/radiotwe/muziek/Commercials/"))
kerst = kerst_meta(playlist(reload=3600, "/home/radiotwe/muziek/kerst/"))
# If something goes wrong, we'll play this
security = single("/home/radiotwe/muziek/mp3/[Jose Wolters]-[Radio Twenterand
Lied].mp3")
# Random Kerstplaat
radio = random(weights = [1, 2], [kerst, myplaylist])
radio = nrj(radio)
radio = crossfade(start_next=1.,fade_out=0.5,fade_in=0.5,radio)
j = delay(5., jingles)
muziek = fallback([j, radio])
final = fallback(track_sensitive=false,[live,muziek,security])
# Stream it out
output.icecast.mp3(
bitrate=128,
quality=2,
genre="Folk",
restart=true,
name="Radio Twenterand - Hoofdsponsor Goodpack Twente
B.V.",
url="http://radiotwenterand.nl",
public=true,
description = "Het beste LEGALE piratenstation voor
jong en oud",
host = "127.0.0.1",
port = 8000,
password = "*",
mount = "jukeboxdbg.mp3",
final
)
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users