summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-20 11:37:15 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-20 11:37:15 +0200
commitb68aac055b12df77c408715ee9c3aca00ccced44 (patch)
tree451cd76dc02eeba6bc37318f54efe10dfaf48275
parentMU premium (diff)
downloadpyload-b68aac055b12df77c408715ee9c3aca00ccced44.tar.xz
rs direct download
-rw-r--r--module/plugins/hoster/RapidshareCom.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py
index 3d40ba9d5..dd634821c 100644
--- a/module/plugins/hoster/RapidshareCom.py
+++ b/module/plugins/hoster/RapidshareCom.py
@@ -49,6 +49,7 @@ class RapidshareCom(Hoster):
self.no_slots = True
self.api_data = None
self.multiDL = False
+ self.direct = False
if self.account:
self.multiDL = True
self.req.canContinue = True
@@ -92,6 +93,10 @@ class RapidshareCom(Hoster):
self.pyfile.name = self.get_file_name()
# self.pyfile.status.url = self.parent.url
return True
+ elif int(self.api_data["status"]) >= 50 and int(self.api_data["status"]) < 100:
+ self.pyfile.name = self.get_file_name()
+ self.direct = True
+ return True
else:
self.fail("Unknown response code.")
@@ -178,5 +183,8 @@ class RapidshareCom(Hoster):
return self.url.split("/")[-1]
def proceed(self, url):
- self.download(url, get={"directstart":1}, cookies=True)
+ if self.direct:
+ self.download(self.pyfile.url)
+ else:
+ self.download(url, get={"directstart":1}, cookies=True)