summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/HellshareCz.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/HellshareCz.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/HellshareCz.py')
-rw-r--r--pyload/plugins/hoster/HellshareCz.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pyload/plugins/hoster/HellshareCz.py b/pyload/plugins/hoster/HellshareCz.py
index aa494e34e..5fdcca7ae 100644
--- a/pyload/plugins/hoster/HellshareCz.py
+++ b/pyload/plugins/hoster/HellshareCz.py
@@ -17,7 +17,6 @@
"""
import re
-from math import ceil
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
@@ -39,18 +38,21 @@ class HellshareCz(SimpleHoster):
self.chunkLimit = 1
def process(self, pyfile):
- if not self.account: self.fail("User not logged in")
+ if not self.account:
+ self.fail("User not logged in")
pyfile.url = re.search(self.__pattern__, pyfile.url).group(1)
- self.html = self.load(pyfile.url, decode = True)
+ self.html = self.load(pyfile.url, decode=True)
self.getFileInfo()
if not self.checkTrafficLeft():
self.fail("Not enough traffic left for user %s." % self.user)
found = re.search(self.SHOW_WINDOW_PATTERN, self.html)
- if not found: self.parseError('SHOW WINDOW')
+ if not found:
+ self.parseError('SHOW WINDOW')
self.url = "http://www.hellshare.com" + found.group(1)
self.logDebug("DOWNLOAD URL: " + self.url)
self.download(self.url)
+
getInfo = create_getInfo(HellshareCz)