Oh my gosh I fixed things as you suggested now I get this value has
type string but it should be a subtype of source
on line 20
I'm about to pull out the rest of my hair aaaaaaaaaaaa!!!!
I'll attach the updated script..
Original message:
Hi Joey,
Your problem is this line:
relay=input.http("http://68.168.103.13:8337/", relay)
You first build input.http(...) then define relay to be this. But
before defining relay, you use it as a parameter of input.http(). This
is why liquidsoap complains that relay is undefined.
The good news is that there's no reason to pass relay as a second
argument of input.http(). Did you mean id("URL",id="relay")?
Have fun,
--
David
PS: In the future, please avoid creating new threads, it messes up the
archives, and it would have prevented my from answering your first
question before seeing your script in the second mail.
--
Email services provided by the System Access Mobile Network. Visit
www.serotek.com to learn more about accessibility anywhere.
set("server.telnet", true)
set("harbor.password", "Juliette77Wisky")
root="/home/crosswavesradio/"
def show (id, password, name)
archive_filename="#{root}archives.crosswavesradio.com/#{id}/%Y-%m-%d.mp3"
#def live_start
# system( "/home/crosswavesradio/relay start &" )
#end
#def live_stop
# system( "/home/crosswavesradio/relay stop &" )
#end
live=input.harbor (port=8001, password=password, id)
output.file (fallible=true, reopen_delay=5., %mp3, archive_filename,
append=true, live)
#live = input.harbor( on_connect = live_start, on_disconnect = live_stop)
live
end
id("http://68.168.103.13:8337/",id="relay")
relay=input.http("http://68.168.103.13:8337/")
#def fade (~fade_in=0.1, ~fade_out=0.1, ~fade_duration=0.1,
#a,b)
#add (normalize = false,
#[ sequence([ blank(duration=fade_duration-fade_in),
#fade.initial(duration=fade_in,b) ]),
#fade.final(duration=fade_out,a) ])
#end
%include "shows.liq"
#music = playlist(reload=3600, "#{root}auto/fallback")
#id=playlist (reload=3600, "#{root}id")
#id=delay (1200., id)
#requests=request.queue(id="requests")
#stream = rotate(transitions = [fun([live, relay]])
#stream=fallback ([requests, stream])
stream=fallback (track_sensitive=false, [live, relay])
stream=mksafe(stream)
output.icecast (mount="live", name="Crosswaves Radio",
url="http://crosswavesradio.com",
password="Juliette77Wisky", %mp3, stream)
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users