summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/common.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-09-22 19:43:53 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-09-22 19:43:53 -0400
commite6b82556343116256be047ab7099bedd9063f66a (patch)
tree884c0435863d130ec967163b82a2638ff1bd9505 /gallery_dl/extractor/common.py
parenta768930761f7f20587ae40a8cacca0e55c85290a (diff)
New upstream version 1.23.1.upstream/1.23.1
Diffstat (limited to 'gallery_dl/extractor/common.py')
-rw-r--r--gallery_dl/extractor/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py
index 1b41101..f7ee51f 100644
--- a/gallery_dl/extractor/common.py
+++ b/gallery_dl/extractor/common.py
@@ -152,7 +152,8 @@ class Extractor():
server = response.headers.get("Server")
if server and server.startswith("cloudflare"):
if code == 503 and \
- b"jschl-answer" in response.content:
+ (b"_cf_chl_opt" in response.content or
+ b"jschl-answer" in response.content):
self.log.warning("Cloudflare IUAM challenge")
break
if code == 403 and \