diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-29 08:41:47 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-29 08:41:47 +0200 |
commit | 6f5062a7ac02c8d583c7f9d480be69e3ee83c05c (patch) | |
tree | 62c8c9570965b86bc40eff7fbc85c4e6fba94532 | |
parent | Fix _log method (diff) | |
download | pyload-6f5062a7ac02c8d583c7f9d480be69e3ee83c05c.tar.xz |
Fix https://github.com/pyload/pyload/issues/1520 (3)
-rw-r--r-- | module/plugins/captcha/CircleCaptcha.py | 9 | ||||
-rw-r--r-- | module/plugins/hooks/UpdateManager.py | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/module/plugins/captcha/CircleCaptcha.py b/module/plugins/captcha/CircleCaptcha.py index 457d20a35..dc04a04c8 100644 --- a/module/plugins/captcha/CircleCaptcha.py +++ b/module/plugins/captcha/CircleCaptcha.py @@ -31,7 +31,7 @@ class ImageSequence: class CircleCaptcha(OCR): __name__ = "CircleCaptcha" __type__ = "ocr" - __version__ = "1.03" + __version__ = "1.04" __status__ = "testing" __description__ = """Circle captcha ocr plugin""" @@ -341,7 +341,12 @@ class CircleCaptcha(OCR): missing = 0 missingconsecutive = 0 missinglist = [] - minX = 0 maxX = 0 minY = 0 maxY = 0 + + minX = 0 + maxX = 0 + minY = 0 + maxY = 0 + pointsofcircle = [] if (c[2] < min_ray) or (c[2] > max_ray): diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 2f82bc498..117da0633 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -115,7 +115,7 @@ class UpdateManager(Addon): if not os.path.isfile(f): continue - mtime = os.stat(f).st_mtime + mtime = os.path.getmtime(f) if id not in self.mtimes: self.mtimes[id] = mtime |