Le mercredi 9 septembre 2009 20:54:06, vous avez écrit :
> 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"
Heh.. The problem, I guess is that you have never written a script so far, have
you ? :-)
The problem that you will run into now is that you need to consider all that
you want
for your system. By that I mean write down exactly the specifications that you
want
for the songs to be played.
Then, you will need to implement them, which means choose a language and write
a
program that finds the correct song according to the specifications.
However, this should not be too difficult. I could try to help. Could you
please try to
write what exactly you want to do for selecting a new song. Try to answer as
simply
as possible to the question:
"Hey, I am liquidsoap. I need to queue a new song, which file should I add ?"
:-)
Le mercredi 9 septembre 2009 20:57:15, vous avez écrit :
> Here's what our playlist metadata did...
>
>
> #playlist = rewrite_metadata(
> # [("artist",("[Nocturnal.FM Main]
> "^"$(artist)")), # ("title",("$(title) "^"[The
> best trance & progressive] "^"$(album) ")),
> # ("album","")],playlist)
>
>
> Basically,
>
> [Nocturnal.FM] Romain Beauxis - Liquidsoap Trance (Original Mix) [The best
> trance & progressive] $(album)
>
> The same way we had our playlist setup... I'm sorry I don't know how to do
> any of this stuff :(
Well, you can do exactly the same !
In the code you show, playlist is a variable, so it could be named anything
else.
For instance:
s = request.dynamic(...)
s = rewrite_metadata(
[("artist",("[Nocturnal.FM Main] "^" $(artist)")),
("title",("$(title) "^" [The best trance &
progressive] "^" $(album) ")),
("album","")], s)
Here I have replace "playlist" by "s", but you could also use any variable name
that you like..
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