From ea1cbdf0a88216d128ed63ec62b1ff0f22123556 Mon Sep 17 00:00:00 2001 From: spoob Date: Sun, 27 Dec 2009 23:29:51 +0100 Subject: Fixed Reconnect in Netload and Rapidshare --- module/plugins/hoster/NetloadIn.py | 3 +++ module/plugins/hoster/RapidshareCom.py | 1 + 2 files changed, 4 insertions(+) (limited to 'module/plugins') diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py index dc639df45..6941ad033 100644 --- a/module/plugins/hoster/NetloadIn.py +++ b/module/plugins/hoster/NetloadIn.py @@ -38,6 +38,8 @@ class NetloadIn(Plugin): def prepare(self, thread): pyfile = self.parent self.req.clear_cookies() + self.want_reconnect = False + self.download_api_data() if self.file_exists(): @@ -116,6 +118,7 @@ class NetloadIn(Plugin): def get_wait_time(self): if re.search(r"We had a reqeust with the IP", self.html[2]): + self.want_reconnect = True self.time_plus_wait = time() + 10 * 30 return diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py index 973e28470..5da9996fd 100644 --- a/module/plugins/hoster/RapidshareCom.py +++ b/module/plugins/hoster/RapidshareCom.py @@ -39,6 +39,7 @@ class RapidshareCom(Plugin): def prepare(self, thread): pyfile = self.parent self.req.clear_cookies() + self.want_reconnect = False self.download_api_data() if self.api_data["status"] == "1": -- cgit v1.2.3