diff options
Diffstat (limited to 'module/plugins/hoster/RapidshareCom.py')
-rw-r--r-- | module/plugins/hoster/RapidshareCom.py | 10 |
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) |