From aaaf5a4cddec894aacd7400c59a9f2f5e710362f Mon Sep 17 00:00:00 2001 From: Stefano Date: Mon, 22 Jul 2013 20:50:34 +0200 Subject: 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 --- pyload/plugins/hoster/JumbofilesCom.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pyload/plugins/hoster/JumbofilesCom.py') diff --git a/pyload/plugins/hoster/JumbofilesCom.py b/pyload/plugins/hoster/JumbofilesCom.py index 9e8adb512..93885a6a3 100644 --- a/pyload/plugins/hoster/JumbofilesCom.py +++ b/pyload/plugins/hoster/JumbofilesCom.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import re from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo -from module.utils import html_unescape + class JumbofilesCom(SimpleHoster): __name__ = "JumbofilesCom" @@ -11,7 +11,7 @@ class JumbofilesCom(SimpleHoster): __description__ = """JumboFiles.com hoster plugin""" __author_name__ = ("godofdream") __author_mail__ = ("soilfiction@gmail.com") - + FILE_INFO_PATTERN = '(?P[^<]+?)\s*\((?P[\d.]+)\s*(?P[KMG][bB])\)' FILE_OFFLINE_PATTERN = 'Not Found or Deleted / Disabled due to inactivity or DMCA' DIRECT_LINK_PATTERN = '' @@ -22,10 +22,11 @@ class JumbofilesCom(SimpleHoster): def handleFree(self): ukey = re.search(self.__pattern__, self.pyfile.url).group(1) - post_data = {"id" : ukey, "op": "download3", "rand": ""} - html = self.load(self.pyfile.url, post = post_data, decode=True) + post_data = {"id": ukey, "op": "download3", "rand": ""} + html = self.load(self.pyfile.url, post=post_data, decode=True) url = re.search(self.DIRECT_LINK_PATTERN, html).group(1) self.logDebug("Download " + url) self.download(url) - + + getInfo = create_getInfo(JumbofilesCom) -- cgit v1.2.3