diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-21 12:08:06 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-21 12:08:06 +0200 |
commit | 1fce480bc8ba6eeccae5036b6842c8f03c746e0c (patch) | |
tree | b2af1aefad8a866f1ac94ad4b66f4527e42344d6 /pyLoadCli.py | |
parent | online check for container (diff) | |
download | pyload-1fce480bc8ba6eeccae5036b6842c8f03c746e0c.tar.xz |
improved online check
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-x | pyLoadCli.py | 15 |
1 files changed, 3 insertions, 12 deletions
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 <pid> <pid2>...", _("Move Packages from Queue to Collector or vice versa")), ("restart_file <fid> <fid2>...", _("Restart files")), ("restart_package <pid> <pid2>...", _("Restart packages")), - ("check <linklist|url> ...", _("Check online status")), + ("check <container|url> ...", _("Check online status, works with local container")), ("check_container path", _("Checks online status of a container file")), ("pause", _("Pause the server")), ("unpause", _("continue downloads")), |