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)
def move(request, start, end): xmms_layer = Xmms_layer() xmms_layer.store_action("move_{0}_{1}".format(start,end)) return get_blank(request)
def skip_to(request, position): xmms_layer = Xmms_layer() xmms_layer.store_action("skip_{0}".format(int(position))) return get_blank(request)
def seek(request, seek_time): xmms_layer = Xmms_layer() xmms_layer.store_action("seek_{0}".format(int(seek_time))) return get_blank(request)
def delete(request, position): xmms_layer = Xmms_layer() xmms_layer.store_action("delete_{0}".format(int(position) - 1)) return get_blank(request)
def run_action(request, action): xmms_layer = Xmms_layer() xmms_layer.store_action(action) return get_blank(request)
def move(request, start, end): xmms_layer = Xmms_layer() xmms_layer.store_action("move_{0}_{1}".format(start, end)) return get_blank(request)