summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/TurbouploadCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 20:50:34 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 21:20:06 +0200
commitaaaf5a4cddec894aacd7400c59a9f2f5e710362f (patch)
tree9d9e89aff86598b3ffcc86117abd554b193e28b5 /pyload/plugins/hoster/TurbouploadCom.py
parentimplemented media type filter (diff)
downloadpyload-aaaf5a4cddec894aacd7400c59a9f2f5e710362f.tar.xz
Fixed PEP 8 violations in Hosters
(cherry picked from commit 2edeee0532ec6d6b4b26fd045a5971f67ca455da) Conflicts: pyload/plugins/hoster/BasePlugin.py pyload/plugins/hoster/MultishareCz.py pyload/plugins/hoster/NetloadIn.py pyload/plugins/hoster/PremiumizeMe.py pyload/plugins/hoster/RapidshareCom.py
Diffstat (limited to 'pyload/plugins/hoster/TurbouploadCom.py')
-rw-r--r--pyload/plugins/hoster/TurbouploadCom.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/pyload/plugins/hoster/TurbouploadCom.py b/pyload/plugins/hoster/TurbouploadCom.py
index 6e81c6319..12dad7906 100644
--- a/pyload/plugins/hoster/TurbouploadCom.py
+++ b/pyload/plugins/hoster/TurbouploadCom.py
@@ -18,8 +18,7 @@
import re
from module.plugins.internal.DeadHoster import DeadHoster as EasybytezCom, create_getInfo
-#from module.plugins.internal.SimpleHoster import create_getInfo
-#from module.plugins.hoster.EasybytezCom import EasybytezCom
+
class TurbouploadCom(EasybytezCom):
__name__ = "TurbouploadCom"
@@ -29,17 +28,19 @@ class TurbouploadCom(EasybytezCom):
__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)
+ 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')
+ if not found:
+ self.parseError('Download Link')
url = found.group(1)
self.logDebug('URL: ' + url)
self.download(url)
-getInfo = create_getInfo(TurbouploadCom) \ No newline at end of file
+
+getInfo = create_getInfo(TurbouploadCom)