summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-05 16:41:30 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-05 16:41:30 +0200
commitfedf2abe2ca434d61f372fc240d77a9c9a492fec (patch)
tree83a87fbcb9e1f5239b01456a23a94c331d0b26ec
parent3rd rs fix (diff)
downloadpyload-fedf2abe2ca434d61f372fc240d77a9c9a492fec.tar.xz
4th rs fix try
-rw-r--r--Plugins/RapidshareCom.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py
index 2e60af5ff..a39cfa0f2 100644
--- a/Plugins/RapidshareCom.py
+++ b/Plugins/RapidshareCom.py
@@ -59,8 +59,7 @@ class RapidshareCom(Plugin):
tries += 1
if tries > 5:
- raise Exception, "Error when downloading, HTML dump:"+ html[0] + html[1]
- break
+ raise Exception, "Error when downloading, HTML dump:"+ self.html[0] + self.html[1]
return True
@@ -68,8 +67,7 @@ class RapidshareCom(Plugin):
""" gets the url from self.parent.url saves html in self.html and parses
"""
url = self.parent.url
- html = self.req.load(url)
- self.html[0] = html
+ self.html[0] = self.req.load(url)
self.html_old = time()
self.download_serverhtml()
@@ -128,23 +126,26 @@ class RapidshareCom(Plugin):
""" returns the absolute downloadable filepath
"""
if self.config['premium']:
+ self.start_dl = True
return self.parent.url
if self.html[1] == None:
self.download_serverhtml()
- if (self.html_old + 5 * 60) < time(): # nach einiger zeit ist die file_url nicht mehr aktuell
- self.download_serverhtml()
+ #if (self.html_old + 5 * 60) < time(): # nach einiger zeit ist die file_url nicht mehr aktuell
+ # self.download_serverhtml()
- if not self.want_reconnect:
+
+ try:
if self.config['server'] == "":
file_url_pattern = r".*name=\"dlf\" action=\"(.*)\" method=.*"
else:
file_url_pattern = '(http://rs.*)\';" /> %s<br />' % self.config['server']
+
self.start_dl = True
return re.search(file_url_pattern, self.html[1]).group(1)
- else:
- pass
+ except:
+ return None
#print self.html[1] #test print
#raise Exception, "Error when retrieving download url"