diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-10 19:49:37 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-10 19:49:37 +0100 |
commit | e17f58459d8d4e57ed447823a988768bf09f2703 (patch) | |
tree | 62c393fd0aecd3dec4ea1d0eaaa8142e3146e44f /module/plugins/hoster | |
parent | [RehostTo] Fix typo (2) (diff) | |
download | pyload-e17f58459d8d4e57ed447823a988768bf09f2703.tar.xz |
[ZeveraCom] Improve
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/ZeveraCom.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/module/plugins/hoster/ZeveraCom.py b/module/plugins/hoster/ZeveraCom.py index 83ff16357..fb251142e 100644 --- a/module/plugins/hoster/ZeveraCom.py +++ b/module/plugins/hoster/ZeveraCom.py @@ -10,7 +10,7 @@ from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo class ZeveraCom(MultiHoster): __name__ = "ZeveraCom" __type__ = "hoster" - __version__ = "0.26" + __version__ = "0.27" __pattern__ = r'https?://(?:www\.)zevera\.com/(getFiles\.ashx|Members/download\.ashx)\?.*ourl=.+' @@ -21,12 +21,7 @@ class ZeveraCom(MultiHoster): def handlePremium(self, pyfile): - html = self.account.api_response(self.req, cmd="checklink", olink=pyfile.url) - if "Alive" in html: - header = self.account.api_response(self.req, just_header=True, cmd="generatedownloaddirect", olink=pyfile.url) - self.link = self.directLink(header['location']) - else: - self.fail(re.search(r'Error: (.+)', html).group(1)) + return "https://%s/getFiles.ashx?ourl=%s" % (self.account.HOSTER_DOMAIN, pyfile.url) def checkFile(self): |