Example #1
0
def main():

    import autoradio_core

    player = "AutoPlayer"
    session = 0
    logging.getLogger('').setLevel(logging.DEBUG)

    programma = dummy_programma()
    player_watchdog(player=player, session=session)
    shuffle = False
    maxlength = None

    type = "program"
    media = "/home/pat1/svn/autoradio/trunk/media/pippo.mp3"
    #media = "/home/pat1/Musica/STOP AL PANICO/ISOLA POSSE STOP AL PANICO.mp3"
    #media = "/home/autoradio/django/media/playlist/tappeto_musicale.m3u"
    #media = raw_input("dammi il media? ")

    scheduledatetime = datetime.now() + timedelta(seconds=5)
    sched = autoradio_core.schedule(programma,
                                    scheduledatetime,
                                    media,
                                    filename=media,
                                    type=type,
                                    shuffle=shuffle,
                                    maxlength=maxlength)

    threadschedule = ScheduleProgram(player, session, sched)
    threadschedule.start()
Example #2
0
def main():

    import autoradio_core

    programma = dummy_programma()

    session = 0
    shuffle = True
    maxlength = None

    type = "playlist"
    media = "/home/autoradio/django/media/playlist/playlistmingogozza.m3u"
    #media = "/home/autoradio/django/media/playlist/tappeto_musicale.m3u"
    #media = raw_input("dammi il media? ")

    scheduledatetime = datetime.now() + timedelta(seconds=5)
    sched = autoradio_core.schedule(programma,
                                    scheduledatetime,
                                    media,
                                    type=type,
                                    shuffle=shuffle,
                                    maxlength=maxlength)

    threadschedule = ScheduleProgram(session, sched)
    threadschedule.start()
Example #3
0
def main():

    import autoradio_core

    programma = dummy_programma()
    audacious_watchdog(0)
    session = 0
    shuffle = False
    maxlength = None

    type = "program"
    media = "/home/pat1/tmp/pippo.mp3"
    #media = "/home/pat1/Musica/STOP AL PANICO/ISOLA POSSE STOP AL PANICO.mp3"
    #media = "/home/autoradio/django/media/playlist/tappeto_musicale.m3u"
    #media = raw_input("dammi il media? ")

    scheduledatetime = datetime.now() + timedelta(seconds=5)
    sched = autoradio_core.schedule(programma,
                                    scheduledatetime,
                                    media,
                                    filename=media,
                                    type=type,
                                    shuffle=shuffle,
                                    maxlength=maxlength)

    threadschedule = ScheduleProgram(session, sched)
    threadschedule.start()
Example #4
0
def main():

    import autoradio_core

    programma=dummy_programma()

    session=0
    shuffle=True
    maxlength=None

    type="playlist"
    media = "/home/autoradio/django/media/playlist/playlistmingogozza.m3u"
    #media = "/home/autoradio/django/media/playlist/tappeto_musicale.m3u"
    #media = raw_input("dammi il media? ")

    scheduledatetime=datetime.now()+timedelta(seconds=5)
    sched=autoradio_core.schedule(programma,scheduledatetime,media,type=type,shuffle=shuffle,maxlength=maxlength)

    threadschedule=ScheduleProgram(session,sched)
    threadschedule.start()
Example #5
0
def main():

    import autoradio_core

    programma=dummy_programma()
    audacious_watchdog(0)
    session=0
    shuffle=False
    maxlength=None

    type="program"
    media = "/home/pat1/tmp/pippo.mp3"
    #media = "/home/pat1/Musica/STOP AL PANICO/ISOLA POSSE STOP AL PANICO.mp3"
    #media = "/home/autoradio/django/media/playlist/tappeto_musicale.m3u"
    #media = raw_input("dammi il media? ")

    scheduledatetime=datetime.now()+timedelta(seconds=5)
    sched=autoradio_core.schedule(programma,scheduledatetime,media,filename=media,type=type,shuffle=shuffle,maxlength=maxlength)

    threadschedule=ScheduleProgram(session,sched)
    threadschedule.start()
Example #6
0
def main():

    import autoradio_core

    player="AutoPlayer"
    session=0
    logging.getLogger('').setLevel(logging.DEBUG)

    programma=dummy_programma()
    player_watchdog(player=player,session=session)
    shuffle=False
    maxlength=None

    type="program"
    media = "/home/pat1/svn/autoradio/trunk/media/pippo.mp3"
    #media = "/home/pat1/Musica/STOP AL PANICO/ISOLA POSSE STOP AL PANICO.mp3"
    #media = "/home/autoradio/django/media/playlist/tappeto_musicale.m3u"
    #media = raw_input("dammi il media? ")

    scheduledatetime=datetime.now()+timedelta(seconds=5)
    sched=autoradio_core.schedule(programma,scheduledatetime,media,filename=media,type=type,shuffle=shuffle,maxlength=maxlength)

    threadschedule=ScheduleProgram(player,session,sched)
    threadschedule.start()