1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

add notification when solving cloudflare challenge

This commit is contained in:
Mike Fährmann 2017-03-25 12:23:30 +01:00
parent dce5bce74e
commit cdecd0b37b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -22,6 +22,7 @@ def request_func(self, *args):
response = self.session.get(*args)
if response.status_code != 200:
_cookiecache.invalidate(self.root)
self.log.info("Solving Cloudflare challenge")
response = solve_challenge(self.session, response)
_cookiecache(self.root, self.session.cookies)
return response