예제 #1
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)
예제 #2
0
파일: views.py 프로젝트: Alafazam/partybeat
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)
예제 #3
0
파일: views.py 프로젝트: Alafazam/partybeat
def move(request, start, end):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("move_{0}_{1}".format(start,end))
    return get_blank(request)
예제 #4
0
파일: views.py 프로젝트: Alafazam/partybeat
def skip_to(request, position):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("skip_{0}".format(int(position)))
    return get_blank(request)
예제 #5
0
파일: views.py 프로젝트: Alafazam/partybeat
def seek(request, seek_time):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("seek_{0}".format(int(seek_time)))
    return get_blank(request)
예제 #6
0
파일: views.py 프로젝트: Alafazam/partybeat
def delete(request, position):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("delete_{0}".format(int(position) - 1))
    return get_blank(request)
예제 #7
0
파일: views.py 프로젝트: Alafazam/partybeat
def run_action(request, action):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action(action)
    return get_blank(request)
예제 #8
0
def move(request, start, end):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("move_{0}_{1}".format(start, end))
    return get_blank(request)
예제 #9
0
def skip_to(request, position):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("skip_{0}".format(int(position)))
    return get_blank(request)
예제 #10
0
def seek(request, seek_time):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("seek_{0}".format(int(seek_time)))
    return get_blank(request)
예제 #11
0
def delete(request, position):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action("delete_{0}".format(int(position) - 1))
    return get_blank(request)
예제 #12
0
def run_action(request, action):
    xmms_layer = Xmms_layer()
    xmms_layer.store_action(action)
    return get_blank(request)