summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2016-04-01 17:11:35 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2016-04-01 17:11:35 +0200
commit5412ac9d94c392e0a6ed182131467865d3509b94 (patch)
tree9bb6749721c63ca81e645f7d9e7e8353ff683544
parent[SolveMedia] Update (diff)
parent[UlozTo] Fix new version (diff)
downloadpyload-5412ac9d94c392e0a6ed182131467865d3509b94.tar.xz
Merge pull request #2404 from sodd/fix-ulozto-captcha
[UlozTo] Fix new version
-rw-r--r--module/plugins/hoster/UlozTo.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py
index 275675157..cf0c48191 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.21"
+ __version__ = "1.22"
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl)/(?:live/)?(?P<ID>\w+/[^/?]*)'
@@ -87,6 +87,14 @@ class UlozTo(SimpleHoster):
inputs.update({'timestamp': data['timestamp'], 'salt': data['salt'], 'hash': data['hash'], 'captcha_value': captcha_value})
+ elif all(key in inputs for key in ('do', 'cid', 'ts', 'sign', '_token_', 'sign_a', 'adi')):
+ # New version 1.4.2016
+ self.log_debug('Using "new" > 1.4.2016')
+
+ inputs.update({'do': inputs['do'], '_token_': inputs['_token_'],
+ 'ts': inputs['ts'], 'cid': inputs['cid'],
+ 'adi': inputs['adi'], 'sign_a': inputs['sign_a'],'sign': inputs['sign']})
+
else:
self.error(_("CAPTCHA form changed"))