Hi,

I tested something like your script, and it failed.

def nextcloud(~rlog,~maxtime,arg) =
  [process_uri(extname="txt","echo ./test.mp3 >> $(output)")]
end
add_protocol("nc",nextcloud,doc="Fetch files from nextcloud",
syntax="nc://uri")

Salsa = playlist("nc:")
output.alsa(fallible=true,Salsa)

2018/09/23 20:08:06 [nc::3] Loading playlist...
2018/09/23 20:08:26 [protocol.process:3] Failed to execute echo ./test.mp3
>> "/tmp/liq-processaa631c.txt": ("timeout","19.7391860485")
2018/09/23 20:08:26 [nc::2] Failed when resolving playlist URI "nc:"!
2018/09/23 20:08:26 [nc::3] Successfully loaded a playlist of 0 tracks.

If I test with a static list like this one '/tmp/liq-processaa631c.txt' it
works so I assume that the "echo" command is well executed and that the
result file is good.

I check if I can upgrade to 1.3.4



Le dim. 23 sept. 2018 à 18:27, Romain Beauxis <romain.beau...@gmail.com> a
écrit :

> Hi,
> Le sam. 22 sept. 2018 à 13:10, sébastien dagnicourt <
> sebastien.dagnico...@gmail.com> a écrit :
> >
> > Hi,
> >
> > So new tests:
> > I create a local "radio.txt" file.
> > I put in in the playlist function, tracks were discovered and played.
> >
> > So, I created a simple bash file that do a "cat radio.txt >>
> tmp_liquidsoap_file"
> > Same issue, liquidsoap won't take the file.
> > As you suggested I put a debug echo before the exit 0, the echo is ok.
> The content of the tmp file is ok.
> > Can't do more simple than that ...
>
> That's a good start! This works for me with 1.3.4:
>
> def test(~rlog,~maxtime,arg) =
> [process_uri(extname="txt","echo /tmp/bla.wav >> $(output)")]
> end
> add_protocol("test",test)
>
> s = playlist("test:")
>
> output.ao(fallible=true,s)
>
> Is that similar to your test?
> Romain
> _______________________________________________
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to