MCPcopy Index your code
hub / github.com/pyload/pyload / printOnlineCheck

Method printOnlineCheck

pyLoadCli.py:358–369  ·  view source on GitHub ↗
(self, client, rid)

Source from the content-addressed store, hash-verified

356 print_commands()
357
358 def printOnlineCheck(self, client, rid):
359 while True:
360 sleep(1)
361 result = client.pollResults(rid)
362 for url, status in result.data.iteritems():
363 if status.status == 2: check = "Online"
364 elif status.status == 1: check = "Offline"
365 else: check = "Unknown"
366
367 print "%-45s %-12s\t %-15s\t %s" % (status.name, formatSize(status.size), status.plugin, check)
368
369 if result.rid == -1: break
370
371
372class RefreshThread(Thread):

Callers 1

processCommandMethod · 0.95

Calls 3

formatSizeFunction · 0.90
pollResultsMethod · 0.45
iteritemsMethod · 0.45

Tested by

no test coverage detected