diff options
author | sodd <sodd@users.noreply.github.com> | 2016-04-01 16:58:15 +0200 |
---|---|---|
committer | sodd <sodd@users.noreply.github.com> | 2016-04-01 16:58:15 +0200 |
commit | fbc5eef8bdc67c729bb29280a57000aa0ba45d58 (patch) | |
tree | c05cca254e675974f5a173059e494eca30a7d684 /module | |
parent | [UlozTo] fix captcha (diff) | |
download | pyload-fbc5eef8bdc67c729bb29280a57000aa0ba45d58.tar.xz |
[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")) |