diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 18:07:46 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-16 18:07:46 +0200 |
commit | 3eec058b29cc37af8ff116926d4273b377c7471b (patch) | |
tree | 012864e3d7fce39e419dd70aa1cbabb347231b82 /pyload/plugin | |
parent | [config] Use get method instead dict access (diff) | |
download | pyload-3eec058b29cc37af8ff116926d4273b377c7471b.tar.xz |
Fix comments
Diffstat (limited to 'pyload/plugin')
-rw-r--r-- | pyload/plugin/hoster/ZippyshareCom.py | 4 | ||||
-rw-r--r-- | pyload/plugin/ocr/NetloadIn.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/hoster/ZippyshareCom.py b/pyload/plugin/hoster/ZippyshareCom.py index 91a636f0a..a062df458 100644 --- a/pyload/plugin/hoster/ZippyshareCom.py +++ b/pyload/plugin/hoster/ZippyshareCom.py @@ -67,13 +67,13 @@ class ZippyshareCom(SimpleHoster): def replElementById(element): - id = element.group(1) # id might be either 'x' (a real id) or x (a variable) + id = element.group(1) #: id might be either 'x' (a real id) or x (a variable) attr = element.group(4) # attr might be None varName = re.sub(r'-', '', 'GVAR[%s+"_%s"]' %(id, attr)) realid = id.strip('"\'') - if id != realid: #id is not a variable, so look for realid.attr in the html + if id != realid: #: id is not a variable, so look for realid.attr in the html initValues = filter(None, [elt.get(attr, None) for elt in soup.findAll(id=realid)]) initValue = '"%s"' % initValues[-1] if initValues else 'null' initScripts.add('%s = %s;' % (varName, initValue)) diff --git a/pyload/plugin/ocr/NetloadIn.py b/pyload/plugin/ocr/NetloadIn.py index 9e31d18d5..57651428b 100644 --- a/pyload/plugin/ocr/NetloadIn.py +++ b/pyload/plugin/ocr/NetloadIn.py @@ -24,6 +24,6 @@ class NetloadIn(OCR): self.clean(3) self.run_tesser(True, True, False, False) - self.result_captcha = self.result_captcha.replace(" ", "")[:4] # cut to 4 numbers + self.result_captcha = self.result_captcha.replace(" ", "")[:4] #: cut to 4 numbers return self.result_captcha |