Exemple #1
0
def playlist(request):
    xmms_layer = Xmms_layer()
    xmms_layer.load_player_from_db()
    player = xmms_layer.player
    return render_to_response('player/standalone_playlist.html',
                              locals(),
                              context_instance=RequestContext(request))
Exemple #2
0
def get_info(request):
    xmms_layer = Xmms_layer()
    xmms_layer.load_player_from_db()
    player = xmms_layer.player
    return render_to_response('player/info.json',
                              locals(),
                              context_instance=RequestContext(request))
Exemple #3
0
def volume(request, volume):
    xmms_layer = Xmms_layer()
    if int(volume) < 0:
        volume = 0
    elif int(volume) > 100:
        volume = 100
    xmms_layer.store_action("volume_{0}".format(int(volume)))
    return get_blank(request)
Exemple #4
0
def volume(request, volume):
    xmms_layer = Xmms_layer()
    if int(volume) < 0:
        volume = 0
    elif int(volume) > 100:
        volume = 100
    xmms_layer.store_action("volume_{0}".format(int(volume)))
    return get_blank(request)
Exemple #5
0
def move(request, start, end):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("move_{0}_{1}".format(start,end))
    return get_blank(request)
Exemple #6
0
def skip_to(request, position):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("skip_{0}".format(int(position)))
    return get_blank(request)
Exemple #7
0
def seek(request, seek_time):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("seek_{0}".format(int(seek_time)))
    return get_blank(request)
Exemple #8
0
def delete(request, position):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("delete_{0}".format(int(position) - 1))
    return get_blank(request)
Exemple #9
0
def playlist(request):
    xmms_layer = Xmms_layer()
    xmms_layer.load_player_from_db()
    player = xmms_layer.player
    return render_to_response('player/standalone_playlist.html', locals(), context_instance=RequestContext(request))
Exemple #10
0
def get_info(request):
    xmms_layer = Xmms_layer()
    xmms_layer.load_player_from_db()
    player = xmms_layer.player
    return render_to_response('player/info.json', locals(), context_instance=RequestContext(request))
Exemple #11
0
def run_action(request, action):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action(action)
    return get_blank(request)
Exemple #12
0
def move(request, start, end):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("move_{0}_{1}".format(start, end))
    return get_blank(request)
Exemple #13
0
def skip_to(request, position):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("skip_{0}".format(int(position)))
    return get_blank(request)
Exemple #14
0
def seek(request, seek_time):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("seek_{0}".format(int(seek_time)))
    return get_blank(request)
Exemple #15
0
def delete(request, position):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("delete_{0}".format(int(position) - 1))
    return get_blank(request)
Exemple #16
0
def run_action(request, action):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action(action)
    return get_blank(request)