From 1fce480bc8ba6eeccae5036b6842c8f03c746e0c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 21 Jul 2011 12:08:06 +0200 Subject: improved online check --- pyLoadCli.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'pyLoadCli.py') diff --git a/pyLoadCli.py b/pyLoadCli.py index 9c456d422..a7750f784 100755 --- a/pyLoadCli.py +++ b/pyLoadCli.py @@ -316,18 +316,9 @@ class Cli: self.client.movePackage((pack.dest + 1) % 2, pack.pid) elif command == "check": - links = [] - for url in args: - if exists(join(OWD, url)): - f = open(join(OWD, url), "rb") - links.extend([x.strip() for x in f.readlines() if x.strip()]) - f.close() - else: - links.append(url) - - print _("Checking %d links:") % len(links) + print _("Checking %d links:") % len(args) print - rid = client.checkOnlineStatus(links).rid + rid = client.checkOnlineStatus(args).rid self.printOnlineCheck(client, rid) @@ -463,7 +454,7 @@ def print_commands(): ("move ...", _("Move Packages from Queue to Collector or vice versa")), ("restart_file ...", _("Restart files")), ("restart_package ...", _("Restart packages")), - ("check ...", _("Check online status")), + ("check ...", _("Check online status, works with local container")), ("check_container path", _("Checks online status of a container file")), ("pause", _("Pause the server")), ("unpause", _("continue downloads")), -- cgit v1.2.3