Hi, Ive noticed ON_METADATA function is not called when a live stream
interrupts,
However, when a new song is played on the live stream, the function is called
(just not on the first song when switching)
Thanks
Heres my script:
```#!/usr/bin/liquidsoap
set("log.stdout", true)
set("log.level", 3)
set("log.file.path", "tests.log")
set("server.telnet", true)
set("server.timeout",-1.0)
set("server.telnet.bind_addr","0.0.0.0")
set("server.telnet.port",1717)
set("server.telnet.reverse_dns",true)
def transitionToLive(old,new) =
old = fade.final(old)
new = fade.in(new)
add([old,new])
end
def transitionToAuto(old,new) =
old = fade.final(old)
new = fade.in(new)
add([old,new])
end
def send_meta(m) =
ignore(http.get("http://listen.nagar.eu/ctl/post_track.php" ^ "?artist=" ^
url.encode(m["artist"]) ^ "&title=" ^ url.encode(m["title"]) ^ ""))
end
hit_music = random([playlist("C:\Documents and
Settings\Appletec\Desktop\Music",mode="randomize",reload=1,reload_mode="rounds")])
requests = request.queue(id="queue")
radio =
fallback(track_sensitive=false,transitions=[transitionToLive,transitionToAuto],[requests,
hit_music])
radio = smart_crossfade(radio)
radio = amplify(1.,override="replay_gain",radio)
vover = input.http("http://listen.nagar.eu:8000/livevover.ogg")
radio = add([radio,vover])
full =
fallback(track_sensitive=false,transitions=[transitionToLive,transitionToAuto],
[input.http("http://listen.nagar.eu:8000/liveinput.ogg"), radio])
full = on_metadata(send_meta, full)
output.icecast(%mp3(bitrate=128),
host="listen.nagar.eu",name="Nagar FM",description="Playing the latest and
greatest music until 6 PM. Join us at 6 PM for party and rap
music.",port=8000,password="niallfm",
mount="autodj.mp3",fallible=true,full)
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/624
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users