diff options
author | Walter Purcaro <vuolter@gmail.com> | 2013-12-13 11:20:19 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-12-13 11:20:39 +0100 |
commit | 7f239b41cb29ee95c878f78a6e9cacd55f301a8d (patch) | |
tree | 6fdb219256a3fa2c6de6f858197d91c829f73ff2 /module/plugins/hoster/TurbouploadCom.py | |
parent | Merge pull request #434 from kmarty/stable (diff) | |
download | pyload-7f239b41cb29ee95c878f78a6e9cacd55f301a8d.tar.xz |
Some hosters marked as dead
Merged #375
Diffstat (limited to 'module/plugins/hoster/TurbouploadCom.py')
-rw-r--r-- | module/plugins/hoster/TurbouploadCom.py | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/module/plugins/hoster/TurbouploadCom.py b/module/plugins/hoster/TurbouploadCom.py index 12dad7906..1c60c2c87 100644 --- a/module/plugins/hoster/TurbouploadCom.py +++ b/module/plugins/hoster/TurbouploadCom.py @@ -16,31 +16,17 @@ @author: zoidberg """ -import re -from module.plugins.internal.DeadHoster import DeadHoster as EasybytezCom, create_getInfo +from module.plugins.internal.DeadHoster import DeadHoster, create_getInfo -class TurbouploadCom(EasybytezCom): +class TurbouploadCom(DeadHoster): __name__ = "TurbouploadCom" __type__ = "hoster" __pattern__ = r"http://(?:\w*\.)?turboupload.com/(\w+).*" - __version__ = "0.02" + __version__ = "0.03" __description__ = """turboupload.com""" __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") - # shares code with EasybytezCom - - DIRECT_LINK_PATTERN = r'<a href="(http://turboupload.com/files/[^"]+)">\1</a>' - - def handleFree(self): - self.html = self.load(self.pyfile.url, post=self.getPostParameters(), ref=True, cookies=True) - found = re.search(self.DIRECT_LINK_PATTERN, self.html) - if not found: - self.parseError('Download Link') - url = found.group(1) - self.logDebug('URL: ' + url) - self.download(url) - getInfo = create_getInfo(TurbouploadCom) |