From a2ac141fcb16360851861f91d738ec24512b1639 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 5 Aug 2009 17:23:25 +0200 Subject: 5th rs fix try --- Plugins/RapidshareCom.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Plugins/RapidshareCom.py') diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py index a39cfa0f2..4c4167c10 100644 --- a/Plugins/RapidshareCom.py +++ b/Plugins/RapidshareCom.py @@ -40,6 +40,9 @@ class RapidshareCom(Plugin): tries = 0 while not self.start_dl: + + self.req.clear_cookies() + self.download_html() pyfile.status.filename = self.get_file_name() @@ -59,7 +62,7 @@ class RapidshareCom(Plugin): tries += 1 if tries > 5: - raise Exception, "Error when downloading, HTML dump:"+ self.html[0] + self.html[1] + raise Exception, "Error when downloading, HTML dump:"+ str(self.html[0]) + str(self.html[1]) return True @@ -144,7 +147,8 @@ class RapidshareCom(Plugin): self.start_dl = True return re.search(file_url_pattern, self.html[1]).group(1) - except: + except Exception e: + print e, html[1] return None #print self.html[1] #test print #raise Exception, "Error when retrieving download url" -- cgit v1.2.3