Hi,
Works like a charm! Thanks for your help.
Maybe the example in the manual should be updated, since I almost literaly
copied my code from the docs.
Mathijs
> From: to...@rastageeks.org
> To: savonet-users@lists.sourceforge.net
> Date: Sun, 30 Aug 2009 16:42:10 -0500
> Subject: Re: [Savonet-users] Error using replay gain
>
> Le dimanche 30 août 2009 02:59:23, Mathijs Vos a écrit :
> > Hi,
>
> Hi !
>
> > At first, liquidsoap is a wonderfull product, and I really wanna thank you
> > for it. Keep up the good work, guys!
>
> Thanks !!
>
> > I was experimenting a little on my old test machine, running Ubuntu Server
> > 9.04, Icecast 2 and Liquidsoap 0.91. I tried to implement replay gain, but
> > unfortunately I'm getting some errors and I don't know how to solve them.
> > This is my liquidsoap script:
> >
> > def replaygain_protocol(arg,delay)
> > x=get_process_lines("/home/mathijs/replaygain.pl #{quote(arg)}")
> > if list.hd(x) != "" then
> > "annotate:replay_gain=\"#{list.hd(x)}\":#{arg}"
> > else
> > arg
> > end
> > end
> > add_protocol("replay_gain", replaygain_protocol)
>
> (...)
>
> > The error message is:
> > ERROR: this script is not well typed!
> >
> > At line 9, char 13:
> > this value has type
> > (?temporary:bool, string, ((string, float)->[string]))->unit
> > but it should be a subtype of
> > (string, ((string, float)->string))->?A
>
> What this error message tells you is that your function returns a single
> string instead of a list of strings. In other words, a protocol resolver may
> return several new URIs, hence a list.
>
> You should get rid of this by returning ["foo"] instead of "foo".
>
>
> Romain
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users
_________________________________________________________________
Windows werkt zelfs voor je studie
http://www.windows.nl/Theme.aspx?id=2
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users