From c76c8b765a8b0759d342ead365fc06b5ad14b3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 9 Feb 2020 18:51:29 +0100 Subject: [PATCH] [cloudflare] unescape challenge URL --- gallery_dl/cloudflare.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/cloudflare.py b/gallery_dl/cloudflare.py index 6e23c832..6ba54806 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]