Romain,

The latest problem is that LiquidSoap automatically loads up the same file when 
I do dynamic requests.

So In order for 1 song to play, and then the next correct song, liquidsoap will 
play each one 2 times.

I tried echoing back 2 lines, but liquidsoap doesn’t error, it just... doesn’t 
do anything...

Track.sh:  (try # 1 success, infinitely repeats the track)

echo "/home/nocturnal/tunes/_TODAY/13.today.mp3"

Track.sh   (Doesn't error or anything, just doesn't stream -- mainly because I 
don’t have a fallback, because I don't want one (at least until I get 
everything running through this dynamic request system))

echo "/home/nocturnal/tunes/_TODAY/13.today.mp3"
echo "/home/nocturnal/tunes/_TODAY/14.today.mp3"


Thanks

Nathan


-----Original Message-----
From: Romain Beauxis [mailto:[email protected]] 
Sent: Wednesday, September 09, 2009 8:19 PM
To: Nathan Huebner
Cc: [email protected]
Subject: Re: [Savonet] #303: Large tracks take long to load

Le mercredi 9 septembre 2009 19:59:01, Nathan Huebner a écrit :
> Ok so I have put the dynamic request in, and it points to a file.. ( a
>  script )... 

Hmm.. This file has to be an executable script..

>  But I put in the script the MP3 to play, and this was spammed
>  so much that it kicked me out of SSH lol:
> 
> /home/nocturnal/track.txt: line 1:
>  /home/nocturnal/tunes/_TODAY/10.today.mp3: cannot execute binary file
> 
> 
> Your site examples are great, but none actually show the script I use, and
>  how It should respond to my LIQ file to be a valid response. What do I
>  name my script file? What do I put in it? Do I need to do a "Single", and
>  echo back something? Can you help.

Well the script should be some sort of program of your own, all liquidsoap 
requires is that it writes to its standard output the name of the next song to 
queue. Then you can put all the details you need on this script.

The dummy example to start with could be:

8<------------------------------------------>8
#/bin/sh

# Dummy script that always returns the same song...
echo "/home/nocturnal/tunes/_TODAY/10.today.mp3"
8<------------------------------------------>8

You save this content to a file, say /tmp/test.sh and then do:
  chmod +x /tmp/test.sh
which will make it executable.

Then on the previous code example I gave you, you replace "/path/to/script" by 
"/tmp/test.sh".

However, this is a stupid script, in order to have the scheduling you need you 
will need to write your custom script that returns exactly the song you want 
to play. The advantage of this method is that you are free to use whatever 
language you feel comfortable with, and you will not have to cope with the 
details about playlists in liquidsoap.

Hope this helps..

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to