Beispiel #1
0
def index():
    if request.args.has_key('action'):
        if request.args['action'] == 'play':
            play(request.args['channel'])
        elif request.args['action'] == 'stop':
            stop()
        elif request.args['action'] == 'inc_vol':
            inc_vol()
        elif request.args['action'] == 'dec_vol':
            dec_vol()
    
    return render_template("index.html", RADIO=RADIO);
Beispiel #2
0
def index():
    if request.args.has_key('action'):
        if request.args['action'] == 'play':
            play(request.args['playlist'])
        elif request.args['action'] == 'stop':
            stop()
        elif request.args['action'] == 'inc_vol':
            inc_vol()
        elif request.args['action'] == 'dec_vol':
            dec_vol()

    return render_template("index.html", RADIO=RADIO, BARNA=BARNA)