diff options
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/Hoster.py | 3 | ||||
-rw-r--r-- | module/plugins/hoster/BasePlugin.py | 13 |
2 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py index fbe1c7480..651471a93 100644 --- a/module/plugins/Hoster.py +++ b/module/plugins/Hoster.py @@ -66,8 +66,7 @@ class Hoster(Base): #: enables resume (will be ignored if server dont accept chunks) self.resumeDownload = False - #: time() + wait in seconds - self.waitUntil = 0 + #: plugin is waiting self.waiting = False self.ocr = None #captcha reader instance diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py index b495be873..293049a1a 100644 --- a/module/plugins/hoster/BasePlugin.py +++ b/module/plugins/hoster/BasePlugin.py @@ -29,12 +29,13 @@ class BasePlugin(Hoster): self.multiDL = False return -# self.__name__ = "NetloadIn" -# pyfile.name = "test" -# self.html = self.load("http://localhost:9000/short") -# self.download("http://localhost:9000/short") -# self.api = self.load("http://localhost:9000/short") -# self.decryptCaptcha("http://localhost:9000/captcha") + #TODO: remove debug + if pyfile.url.lower().startswith("debug"): + self.setWait(30) + self.wait() + self.decryptCaptcha("http://pyload.org/pie.png") + self.download("http://pyload.org/random100.bin") + return # # if pyfile.url == "79": # self.core.api.addPackage("test", [str(i) for i in range(80)], 1) |