diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-02-27 22:56:22 +0100 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-02-27 22:56:22 +0100 |
commit | 4d25665bb3e8cf7c22a9efc6a3bbf29f29856642 (patch) | |
tree | 43311c5f380582bd22c46d3d9a1b6fba83266845 /module/plugins/hoster/RapidshareCom.py | |
parent | Single "if" check instead of two. (diff) | |
download | pyload-4d25665bb3e8cf7c22a9efc6a3bbf29f29856642.tar.xz |
Diffstat (limited to 'module/plugins/hoster/RapidshareCom.py')
-rw-r--r-- | module/plugins/hoster/RapidshareCom.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py index 0d927c525..8b31dd42c 100644 --- a/module/plugins/hoster/RapidshareCom.py +++ b/module/plugins/hoster/RapidshareCom.py @@ -50,7 +50,7 @@ class RapidshareCom(Hoster): __name__ = "RapidshareCom" __type__ = "hoster" __pattern__ = r"https?://[\w\.]*?rapidshare.com/(?:files/(?P<id>\d*?)/(?P<name>[^?]+)|#!download\|(?:\w+)\|(?P<id_new>\d+)\|(?P<name_new>[^|]+))" - __version__ = "1.37" + __version__ = "1.38" __description__ = """Rapidshare.com Download Hoster""" __config__ = [["server", "Cogent;Deutsche Telekom;Level(3);Level(3) #2;GlobalCrossing;Level(3) #3;Teleglobe;GlobalCrossing #2;TeliaSonera #2;Teleglobe #2;TeliaSonera #3;TeliaSonera", "Preferred Server", "None"]] __author_name__ = ("spoob", "RaNaN", "mkaay") @@ -60,17 +60,14 @@ class RapidshareCom(Hoster): self.html = None self.no_download = True self.api_data = None - self.multiDL = False self.offset = 0 self.dl_dict = {} self.id = None self.name = None - - if self.account: - self.multiDL = True - self.chunkLimit = -1 - self.resumeDownload = True + + self.chunkLimit = -1 if self.premium else 1 + self.multiDL = self.resumeDownload = self.premium def process(self, pyfile): self.url = self.pyfile.url @@ -90,7 +87,7 @@ class RapidshareCom(Hoster): if self.api_data["status"] == "1": self.pyfile.name = self.get_file_name() - if self.account: + if self.premium: self.handlePremium() else: self.handleFree() @@ -225,5 +222,4 @@ class RapidshareCom(Hoster): def get_file_name(self): if self.api_data["filename"]: return self.api_data["filename"] - return self.url.split("/")[-1] - + return self.url.split("/")[-1]
\ No newline at end of file |