summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2016-03-24 15:22:18 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2016-03-24 15:22:18 +0100
commitf303568294967ec6fe35b27015295cf91743aeb9 (patch)
treea17025c2016195e899aa73e69f38f2b52eca299d
parent[RapidgatorNet] Update (diff)
parent[UlozTo] fix captcha (diff)
downloadpyload-f303568294967ec6fe35b27015295cf91743aeb9.tar.xz
Merge pull request #2395 from sodd/fix-ulozto-captcha
[UlozTo] fix captcha
-rw-r--r--module/plugins/hoster/UlozTo.py9
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})