summaryrefslogtreecommitdiffstats
path: root/Plugins/RapidshareCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-05 17:23:25 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-05 17:23:25 +0200
commita2ac141fcb16360851861f91d738ec24512b1639 (patch)
tree0d26b0d6f8b2b571b452a1095ccaa84c282648c7 /Plugins/RapidshareCom.py
parentlittle user wishes (diff)
downloadpyload-a2ac141fcb16360851861f91d738ec24512b1639.tar.xz
5th rs fix try
Diffstat (limited to 'Plugins/RapidshareCom.py')
-rw-r--r--Plugins/RapidshareCom.py8
1 files changed, 6 insertions, 2 deletions
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"