diff options
author | sodd <sodd@users.noreply.github.com> | 2016-03-24 15:09:55 +0100 |
---|---|---|
committer | sodd <sodd@users.noreply.github.com> | 2016-03-24 15:09:55 +0100 |
commit | 49f1cf73fe23a705fa323f65d2797c3cd9653c1c (patch) | |
tree | a17025c2016195e899aa73e69f38f2b52eca299d | |
parent | [RapidgatorNet] Update (diff) | |
download | pyload-49f1cf73fe23a705fa323f65d2797c3cd9653c1c.tar.xz |
[UlozTo] fix captcha
-rw-r--r-- | module/plugins/hoster/UlozTo.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py index 12fe83c47..275675157 100644 --- a/module/plugins/hoster/UlozTo.py +++ b/module/plugins/hoster/UlozTo.py @@ -15,7 +15,7 @@ def convert_decimal_prefix(m): class UlozTo(SimpleHoster): __name__ = "UlozTo" __type__ = "hoster" - __version__ = "1.20" + __version__ = "1.21" __status__ = "testing" __pattern__ = r'http://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl)/(?:live/)?(?P<ID>\w+/[^/?]*)' @@ -79,11 +79,10 @@ class UlozTo(SimpleHoster): self.log_debug("xapca: %s" % xapca) data = json.loads(xapca) - if self.config.get("captcha") == "Image": - captcha_value = self.captcha.decrypt(data['image']) - else: + if self.config.get("captcha") == "Sound": captcha_value = self.captcha.decrypt(str(data['sound']), input_type='wav', ocr="UlozTo") - captcha_value = self.captcha.decrypt(data['image']) + else: + captcha_value = self.captcha.decrypt(data['image']) self.log_debug("CAPTCHA HASH: " + data['hash'], "CAPTCHA SALT: %s" % data['salt'], "CAPTCHA VALUE: " + captcha_value) inputs.update({'timestamp': data['timestamp'], 'salt': data['salt'], 'hash': data['hash'], 'captcha_value': captcha_value}) |