Example #1
0
def restart_task(args):
	client = XunleiClient(args.username, args.password, args.cookies)
	to_restart = lixian_query.search_tasks(client, args)
	print "Below files are going to be restarted:"
	for x in to_restart:
		print x['name'].encode(default_encoding)
	client.restart_tasks(to_restart)
Example #2
0
def restart_task(args):
    client = XunleiClient(args.username, args.password, args.cookies)
    to_restart = lixian_query.search_tasks(client, args)
    print "Below files are going to be restarted:"
    for x in to_restart:
        print x['name'].encode(default_encoding)
    client.restart_tasks(to_restart)
Example #3
0
def restart_task(args):
	args = parse_login_command_line(args, [], ['i', 'all'], help=lixian_help.restart)
	client = XunleiClient(args.username, args.password, args.cookies)
	to_restart = search_tasks(client, args)
	print "Below files are going to be restarted:"
	for x in to_restart:
		print x['name'].encode(default_encoding)
	client.restart_tasks(to_restart)
Example #4
0
def restart_task(args):
	args = parse_login_command_line(args, [], ['i', 'all'], help=lixian_help.restart)
	client = XunleiClient(args.username, args.password, args.cookies)
	to_restart = search_tasks(client, args)
	print "Below files are going to be restarted:"
	for x in to_restart:
		print x['name'].encode(default_encoding)
	client.restart_tasks(to_restart)
Example #5
0
def restart_task(args):
	args = parse_login_command_line(args, [], ['id', 'file', 'url', 'i', 'all'])
	client = XunleiClient(args.username, args.password, args.cookies)
	to_restart = search_tasks(client, args)
	print "Below files are going to be restarted:"
	for x in to_restart:
		print x['name']
	client.restart_tasks(to_restart)