Thank you for you're answer.

Below the script that I've tried
Unfortunately, I get an error "Starting channels: radiosched.liq Line 48,
char 7 before "=": Parse error."
which is the line:
"radio=nrj(radio)"

I don't understand what is wrong, would you have an idea ?

Merci d'avance :)

FX


# Set the files and playlists, mp3 files in folders
hardcore = playlist("/path/HARDCORE")
breakcore = playlist("/path/BREAKCORE")
idm = playlist("/path/IDM - EXPERIMENTAL")
jungle = playlist("/path/JUNGLE - DRUM AND BASS")
speedcore = playlist("/path/SPEEDCORE - NOIZE")
techno = playlist("/path/TECHNO - BREAKBEAT - BOOTY")
podcasts = playlist("/path/PODCASTS")
jingles = playlist.safe("/path/jingles_radio")

# Sources lives (using another icecast2 server on port 8002)
livesession_lecleclive = input.http("http://website:8002/lecleclive.ogg";)
livesession_k8l = input.http("http://website:8002/k8l.ogg";)
livesession_indik = input.http("http://website:8002/indik.ogg";)
livesession_gkyl = input.http("http://website:8002/gkyl.ogg";)
livesession_metabloke = input.http("http://website:8002/metabloke.ogg";)
livesession_uglykid = input.http("http://website:8002/uglykidjoke.ogg";)

# schedule semaine et week-ends
    weekmorning =  random(weights = [4, 1, 1], [jingles,idm,techno])
    weekafternoon = random(weights = [4, 1, 3, 2],
[jingles,idm,jungle,techno])
    weeknights = random(weights = [4, 1], [jingles,podcasts])
    fridaymorning = random(weights = [4, 1, 1], [jingles,idm,techno])
    fridayafternoon = random(weights = [4, 1, 4, 3],
[jingles,idm,jungle,techno])
    fridaynight = random(weights = [4, 2, 2, 3, 1],
[jingles,hardcore,breakcore,jungle,techno])
    saturdaymorning = random(weights = [4, 3, 2, 1],
[jingles,idm,jungle,techno])
    saturdaynight = random(weights = [4, 3, 3, 1, 3, 1],
[jingles,hardcore,breakcore,jungle,speedcore,techno])
    sundaymorning = random(weights = [4, 1], [jingles,idm])
    sundayafternoon = random(weights = [4, 1, 2], [jingles,idm,techno])
    sundaynight = random(weights = [4, 3, 1, 2],
[jingles,idm,techno,jungle])

#ancienne commande avant le schedule
#radio = random(weights = [4, 2, 3, 2, 2, 1, 2, 1],
[jingles,hardcore,breakcore,idm,jungle,speedcore,techno,podcasts])

#nouvelles commandes (pour schedule)
radiodefault = random(weights = [4, 2, 3, 2, 2, 1, 2, 1],
[jingles,hardcore,breakcore,idm,jungle,speedcore,techno,podcasts])

    radio=fallback([
        switch([
            ({ (1w or 2w or 3w or 4w) and 6h-13h}, weekmorning),
            ({ (1w or 2w or 3w or 4w) and 13h-20h}, weekafternoon),
            ({ (1w or 2w or 3w or 4w) and 20h-23h59}, weeknights),
            ({ (2w or 3w or 4w or 5w) and 0h-6h}, weeknights),
            ({ (5w) and 6h-13h}, fridaymorning),
            ({ (5w) and 13h-20h}, fridayafternoon),
            ({ (5w) and 20h-23h59}, fridaynight),
            ({ (5w) and 0h-6h}, fridaynight),
            ({ (6w) and 6h-13h}, saturdaymorning),
            ({ (6w) and 13h-20h}, saturdayafternoon),
            ({ (6w) and 20h-23h59}, saturdaynight),
            ({ (7w) and 0h-6h}, saturdaynight),
            ({ (7w) and 6h-13h}, sundaymorning),
            ({ (7w) and 13h-20h}, sundayafternoon),
            ({ (7w) and 20h-23h59}, sundaynight),
            ({ (1w) and 0h-6h}, sundaynight),
            radiodefault
            ])

# Processing
radio=nrj(radio)

livesession_k8l=rewrite_metadata([("artist", "Live Session: Live from Tahiti
K8L aka David Metha in the mix!"),("title","LIVE Stream")],livesession_k8l)
livesession_indik=rewrite_metadata([("artist", "L'Eclectic Webradio Live
Session: Indi-K aka OCB in the mix!"),("title","LIVE
Stream")],livesession_indik)
livesession_gkyl=rewrite_metadata([("artist", "L'Eclectic Webradio Live
Session: G.Kyl in the mix!"),("title","LIVE Stream")],livesession_gkyl)
livesession_lecleclive=rewrite_metadata([("artist", "LES ENFLURES
DEMONIAQUES"),("title","Emission en direct")],livesession_lecleclive)
livesession_metabloke=rewrite_metadata([("artist", "LIVE : Metabloke on
Air"),("title","Live Stream")],livesession_metabloke)
livesession_uglykid=rewrite_metadata([("artist", "LIVE : Ugly Kid
Joke"),("title","Live Stream")],livesession_uglykid)

radio = fallback(track_sensitive = false,[strip_blank
(threshold=-60.,length=60.,livesession_metabloke),strip_blank
(threshold=-60.,length=60.,livesession_lecleclive),strip_blank
(threshold=-60.,length=60.,livesession_k8l),strip_blank
(threshold=-60.,length=60.,livesession_gkyl),strip_blank
(threshold=-60.,length=60.,livesession_indik),strip_blank
(threshold=-60.,length=60.,livesession_uglykid),radio])
radio = mksafe(radio)

output.icecast(%mp3(stereo=true,samplerate=44100,bitrate=192),
mount="radio",host="localhost",port=8000,password="******",
name = "L'Eclectic Webradio",description = "From Dub to Speedcore since the
00s",
genre = "Electronica, Breakcore, Hardcore, Techno, Drum and Bass, Jungle,
Industrial, Speedcore",radio,restart=true,protocol="http",public=true,url =
"http://www.website";)


2011/4/1 <[email protected]>

>
> Hi,
> You can do it easly in a single liq
>
> like this
>
> default = single("/path/to/default.mp3")
>
> # Répertoire des fichiers à jouer
> smooth          = playlist("/path/to/style/smooth")
> techno          = playlist("/path/to/style/techno")
> hard            = playlist("/path/to/style/hard-techno")
>
> # our playlists,
> # and the default file if anything goes wrong.
> radio = fallback([
> switch([
> ({ 1h-12h }, smooth),
> ({ 12h-20h }, techno),
> ({ 20h-1h }, hard)
> ]),
> default
> ])
>
> ###################
>
> You can also add day1=Monday, day2=Tuesday etc...
>
> ----- Mail Original -----
> De: "Ix_kool" <[email protected]>
> À: [email protected]
> Envoyé: Samedi 2 Avril 2011 09h00:40 GMT +01:00 Amsterdam / Berlin / Berne
> / Rome / Stockholm / Vienne
> Objet: [Savonet-users] Easily scheduling genres during the day ?
>
>
> Hello,
>
> We're broadcasting an electronica radio which has many different genres.
>
> I actually have a radio.liq file with different weights for genres (each
> genre is a directory with .mp3 files).
>
> I was thinking of duplicating radio.liq 3 times : radiomorning.liq /
> radioafternoon.liq and radioevening.liq
>
> Then I would change weights in each file (seriously, who wants to listen to
> speedcore in the morning?).
>
> Why not changing weight depending of the day of the week also.
>
> And finally, there would be a main radio.liq which would play each .liq
> depending of the time of the day.
>
> Mon to friday :
> morning : smooth_music
> afternoon : techno
> evening (night) : hardcore_techno
>
> then saturday and sunday :
> balanced genres all day long
>
> Is there an easy way to do this ?
>
> I've been looking on the web, but all infos I get regards mostly jingles.
>
> Thank you in advance for your help.
>
> Sincerely,
>
> FX
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
>
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to