diff options
| author | 2020-03-16 23:20:22 -0400 | |
|---|---|---|
| committer | 2020-03-16 23:20:22 -0400 | |
| commit | f1baa4aa12d705e290f74c9fb4c6cd5eb2976fa2 (patch) | |
| tree | 70267e5f04db1da396e75fd4148d9c542683bbab /gallery_dl/cloudflare.py | |
| parent | 2bd320e568d015940227b7355396701331e2cd1e (diff) | |
| parent | e8cc000750de972384f2f34d02d42222b4018ae9 (diff) | |
Update upstream source from tag 'upstream/1.13.2'
Update to upstream version '1.13.2'
with Debian dir a36309ac1ae7b23d042eaafd21c4267c2f840ab4
Diffstat (limited to 'gallery_dl/cloudflare.py')
| -rw-r--r-- | gallery_dl/cloudflare.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gallery_dl/cloudflare.py b/gallery_dl/cloudflare.py index 6e23c83..6ba5480 100644 --- a/gallery_dl/cloudflare.py +++ b/gallery_dl/cloudflare.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2015-2019 Mike Fährmann +# Copyright 2015-2020 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -38,7 +38,7 @@ def solve_challenge(session, response, kwargs): params = cf_kwargs["data"] = collections.OrderedDict() page = response.text - url = root + text.extract(page, 'action="', '"')[0] + url = root + text.unescape(text.extract(page, 'action="', '"')[0]) params["r"] = text.extract(page, 'name="r" value="', '"')[0] params["jschl_vc"] = text.extract(page, 'name="jschl_vc" value="', '"')[0] params["pass"] = text.extract(page, 'name="pass" value="', '"')[0] |
