Hi!
I've solved an issue I'd wrote below.
def create_playlist(uri) =
#uri = "?playlist=pl.m3u&mount=m1";
args = url.split(uri)
#The playlist source
pl = list.assoc("playlist", snd(args))
if (pl=="") then
pl = "~/pl.pls"
end
s = playlist(pl)
# The output
m = list.assoc("mount",snd(args))
if(m=="") then
m="defaultmount"
end
log(m)
output = out(mount="#{m}",s)
Now I'm working with correct playlist removing.
Thanks,
Boris
On 3/19/11, Boris Zhidkov <[email protected]> wrote:
> Hi, Romain.
>
> After a week of rest, I returned to work with liquidsoap.
> I've got a trouble with url.split.
> AFAIU, it returns list, but when I try to use it like this:
> def create_playlist(uri) =
> args = url.split(uri)
> pl = args["playlist"]
> s = playlist(pl)
>
> or like that:
> args = url.split(uri)
> #Â The playlist source
> pl = list.nth(args,0)
>
> I get errors.
>
> Can you explain how to work with it, please?
>
> Thanks,
> Boris
>
> --
> -------------------------------------------
> WBR, Boris Zhidkov
>
--
-------------------------------------------
WBR, Boris Zhidkov
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users