Hey Guys.

I customized my liquidsoap to run shows in a scheduled structure.

The script has a default rotation of 24/7 and a schedule (switch)..i have a
fade in/out that i added between the schedule and the 24/7, but the problem
is it wont fade between SWITCH shows, if a show in the switch ends and
another one kicks in it wont fade between them, only between the switch and
the rotation.
how can i achieve that?

Second problem which is very important...when a show in the switch is set
to 2 hours and the file itself is 119:00 minuetes for example, it will
restart that file again for that remaining minuete, which is bad..how can i
tell liquidsoap that if a file ends before the set time then fallback to
the 24/7 rotation?

The switch is not track sensitive because i need shows to start on time and
interrupt whatever is playing.


This is the complete modification:


#ahlive = input.http("http://no.ah.fm:443";)
singles = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/singles")
replays = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/replays")
jingles = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/jingles/")
silk = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/silk")
chill = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/chillednights/")
hortaclassic = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/hortaclassic/")
#helmano = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/moranhelman/")
tilsessions = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/tilsessions/")
#danmeyerdeep = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/danmeyerdeep/")
dasha = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/dasha/")
gdjb = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/gdjb/")
asotweekly = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/asot/")
varena = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/varena/")
hourpower = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/hourpower/")
ffix = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/ferryfix/")
#abgtweekly = playlist(mode='normal',reload=1,reload_mode="rounds",
"/srv/tranceilmusic/music/abgt/")


def  insert_jingle(j,old,new)
        old = fade.final(old)
        new = fade.initial(new)
        sequence([old,j,new])
end


# Schedule
#ahliveshow = rotate(weights = [1, 1, 5], [jingles,ahlive])
    silkmornings = rotate(weights = [1, 6], [jingles,silk])
    chillout = rotate(weights = [1, 6], [jingles,chill])
    hortaweekly = rotate(weights = [1, 1], [jingles,hortaclassic])
    #moranhelman = rotate(weights = [1, 1], [jingles,helmano])
    tranceilsessions = rotate(weights = [1, 1], [jingles,tilsessions])
    #danmeyer = rotate(weights = [1, 1], [jingles,danmeyerdeep])
    dashalove = rotate(weights = [1, 1], [jingles,dasha])
    globaldj = rotate(weights = [1, 1], [jingles,gdjb])
    asot = rotate(weights = [1, 1], [jingles,asotweekly])
    vocalarena = rotate(weights = [1, 1], [jingles,varena])
    hourofpower = rotate(weights = [1, 1], [jingles,hourpower])
    ferryfix = rotate(weights = [1, 1], [jingles,ffix])
    rotating = rotate(weights=[1, 1, 1,
7],[jingles,replays,jingles,singles])
    #abgt = rotate(weights = [1, 1], [jingles,abgtweekly])

default=fallback(track_sensitive=false,transitions=[insert_jingle(jingles),insert_jingle(jingles)],

[switch(track_sensitive=false,transitions=[insert_jingle(jingles),insert_jingle(jingles)],[

    #Sunday#
            #({ (0w) and 07h-12h}, silkmornings),

            #Monday#

            ({ (1w) and 02h-07h}, chillout),
            #({ (1w) and 07h-12h}, silkmornings),

            #Tuesday#

            ({ (2w) and 07h-12h}, silkmornings),
            ({ (2w) and 21h-22h}, hortaweekly),
            ({ (2w) and 22h-23h}, hourofpower),
            ({ (2w) and 23h-01h}, vocalarena),


            #Wednesday#

            #({ (3w) and 02h-07h}, chillout),
             ({ (3w) and 01h-03h}, tranceilsessions),
             ({ (3w) and 12h-14h}, hortaweekly),
             ({ (3w) and 15h-16h}, dashalove),
             ({ (3w) and 16h-17h}, hourofpower),
             ({ (3w) and 17h-18h}, ferryfix),
             ({ (3w) and 18h-20h}, vocalarena),


            #Thursday#

            ({ (4w) and 02h-07h}, chillout),
            #({ (4w) and 07h-12h}, silkmornings),

            #Friday#

            #({ (5w) and 07h-12h}, silkmornings),
            ({ (5w) and 12h-14h}, hortaweekly),
            ({ (5w) and 17h-19h}, globaldj),
            ({ (5w) and 19h-21h}, asot),



            #Saturday#
            #({ (6w) and 07h-12h}, silkmornings),
            ({ (6w) and 18h-19h}, dashalove),
            #({ (6w) and 19h-21h}, abgt),
            ({ (6w) and 21h-23h}, tranceilsessions),

            ]),
            fallback.skip(input=rotating,rotating,)
            ])

ignore(output.dummy(default, fallible=true))


Thank you for your help!

Cheers, Guy.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to