diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2016-04-01 17:11:35 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2016-04-01 17:11:35 +0200 |
commit | 5412ac9d94c392e0a6ed182131467865d3509b94 (patch) | |
tree | 9bb6749721c63ca81e645f7d9e7e8353ff683544 /module | |
parent | [SolveMedia] Update (diff) | |
parent | [UlozTo] Fix new version (diff) | |
download | pyload-5412ac9d94c392e0a6ed182131467865d3509b94.tar.xz |
Merge pull request #2404 from sodd/fix-ulozto-captcha
[UlozTo] Fix new version
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/UlozTo.py | 10 |
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")) |