Hi all,

I'm trying to get my first LiquidSoap script to work and not sure what the issue is. The script I generated mainly looking at the Cookbook online is:

#!/usr/bin/liquidsoap

#DOWs feeds
monday = playlist(mode="normal", "~/radio/playlist/monday.m3u")
tuesday = playlist(mode="normal","~/radio/playlist/tuesday.m3u")
wednesday = playlist(mode="normal","~/radio/playlist/wednesday.m3u")
thursday = playlist(mode="normal","~/radio/playlist/thursday.m3u")
friday = playlist(mode="normal","~/radio/playlist/friday.m3u")
saturday = playlist(mode="normal","~/radio/playlist/saturday.m3u")
sunday = playlist(mode="normal","~/radio/playlist/sunday.m3u")

#Fallback playback, if for some reason the DOW can't play.
Fall = single("~/radio/fallback.mp3")

#what to play based on the DOW
radio = fallback([ switch([
                            ({ 1w },monday),
                            ({ 2w },tuesday),
                            ({ 3w }, wednesday),
                            ({ 4w }, thursday),
                            ({ 5w }, friday),
                            ({ 6w }, saturday),
                            ({ 7w }, sunday),
            Fall])])
output.icecast(%mp3,host="localhost",port=8000,password="hackme",mount="/radio",radio)

I've installed LiquidSoap on to my Ubuntu workstation and this generates the following:

At line 24, char 17:
  this value has type
    source(_) (inferred at line 13, char 14-37)
  but it should be a subtype of (the type of the value at line 23, char 29-44)
    (_*_)

Line 24, is the line that says "Fall])])" character 17 is the first ]

Any help on what the issue is, and how to fix it would be greatly appreciated!

Chris



_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to