Hi all, i make web interface to liq, im create this base.liq
#!/usr/bin/liquidsoap set("init.daemon.pidfile.path", "/var/run/liquidsoap/trance.pid") set("log.stdout",false) set("log.file.path", "/var/log/liquidsoap/trance.log") set("log.level", 5) set("server.telnet", true) set("server.telnet.bind_addr", "127.0.0.1") set("server.telnet.port", 1231) pass = "" name = "" tits = "" urls = "" desc = "" def live_start() log("got live source, starting relays") end def live_stops() log("live source has gone, stoping relays") end def crossfade(source) def f(previous,next) add(normalize=false,[sequence([blank(duration=3.),fade.in(duration=18.,next)]),fade.out(duration=18.,previous)]) end cross(duration=15.,f,source) end def meta(m) = def print(z) = label = fst(z) value = snd(z) log("Metadata: #{label}=#{value}") end list.iter(print,m) end errs = blank() errs = rewrite_metadata([("artist","^name^"), ("title","Stopped")], errs ) # One stream ones = request.queue() ones = crossfade(ones) # Two stream twos = single("single/16.mp3"); twos = crossfade(twos) strs = fallback(track_sensitive=false,[ones, twos, errs]) strs = rewrite_metadata([("artist",'$(if $(artist),"$(artist)","^name^")'), ("title",'$(if $(title),"$(title)","^tits^")')], strs ) strs = on_metadata(meta,strs) output.icecast.mp3( restart=true, host="localhost", port=8008, password=pass, mount="trance", genre="Trance", url=urls, name=name ^" "^ tits, description=desc, bitrate=128, strs ) My script make playlist and copy to queue.push, hove i get played tracks and next track and current play? i test, for next track get data from "queue.secondary_queue" is correct? for played track get from "trance.metadata" and skip "--- 1 ---", is correct? ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users