diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py index bb45de2d..1c78cfbd 100644 --- a/gallery_dl/downloader/http.py +++ b/gallery_dl/downloader/http.py @@ -107,7 +107,7 @@ class HttpDownloader(DownloaderBase): elif code == 416 and filesize: # Requested Range Not Satisfiable break else: - msg = "{}: {} for url: {}".format(code, response.reason, url) + msg = "'{} {}' for '{}'".format(code, response.reason, url) if code == 429 or 500 <= code < 600: # Server Error continue self.log.warning("%s", msg) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 8cb2abe6..20e3c7fd 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -111,7 +111,7 @@ class Extractor(): msg = "" self.log.warning("Cloudflare CAPTCHA" + msg) - msg = "{}: {} for url: {}".format(code, response.reason, url) + msg = "'{} {}' for '{}'".format(code, response.reason, url) if code < 500 and code != 429 and code != 430: break @@ -142,7 +142,7 @@ class Extractor(): return username, password def _init_headers(self): - """Set additional headers for the 'session' object""" + """Initialize HTTP headers for the 'session' object""" headers = self.session.headers headers.clear()