diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-04-11 11:49:51 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-21 17:15:29 +0200 |
commit | 760a78b01a895349a9636d5cef2816637914aa7f (patch) | |
tree | 9deae470a6a68744ea5927eb08cc3d0ef4d23ee1 | |
parent | RyushareCom: FILE_SIZE_PATTERN fixed (diff) | |
download | pyload-760a78b01a895349a9636d5cef2816637914aa7f.tar.xz |
RyushareCom: Code cosmetics
Merges vuolter/pyload@f18c34b
(cherry picked from commit 0b568b843442ff454ec336bd227b39220209aa9e)
-rw-r--r-- | pyload/plugins/hoster/RyushareCom.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pyload/plugins/hoster/RyushareCom.py b/pyload/plugins/hoster/RyushareCom.py index cb85f6f4a..92844b360 100644 --- a/pyload/plugins/hoster/RyushareCom.py +++ b/pyload/plugins/hoster/RyushareCom.py @@ -12,9 +12,9 @@ from module.plugins.internal.CaptchaService import SolveMedia class RyushareCom(XFileSharingPro): __name__ = "RyushareCom" __type__ = "hoster" - __pattern__ = r"http://(?:www\.)?ryushare\.com/\w+" + __pattern__ = r'http://(?:www\.)?ryushare\.com/\w+' __version__ = "0.15" - __description__ = """ryushare.com hoster plugin""" + __description__ = """Ryushare.com hoster plugin""" __author_name__ = ("zoidberg", "stickell", "quareevo") __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it", "quareevo@arcor.de") @@ -30,22 +30,22 @@ class RyushareCom(XFileSharingPro): retry = False self.html = self.load(self.pyfile.url) action, inputs = self.parseHtmlForm(input_names={"op": re.compile("^download")}) - if 'method_premium' in inputs: - del inputs['method_premium'] + if "method_premium" in inputs: + del inputs["method_premium"] self.html = self.load(self.pyfile.url, post=inputs) action, inputs = self.parseHtmlForm('F1') self.setWait(65) # Wait 1 hour - if 'You have reached the download-limit!!!' in self.html: + if "You have reached the download-limit" in self.html: self.setWait(1 * 60 * 60, True) retry = True match = re.search(self.WAIT_PATTERN, self.html) if match: m = match.groupdict(0) - waittime = int(m["hour"]) * 60 * 60 + int(m['min']) * 60 + int(m['sec']) + waittime = int(m["hour"]) * 60 * 60 + int(m["min"]) * 60 + int(m["sec"]) self.setWait(waittime, True) retry = True @@ -75,7 +75,7 @@ class RyushareCom(XFileSharingPro): else: self.fail("You have entered 5 invalid captcha codes") - if 'Click here to download' in self.html: + if "Click here to download" in self.html: m = re.search(r'<a href="([^"]+)">Click here to download</a>', self.html) return m.group(1) |