From c9d3b5e5d990cc1f54c277544b43782d2f90904b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 19 Apr 2024 16:41:31 +0200 Subject: [PATCH] [pixiv] change 'sanity_level' debug message to a warning (#5180) --- gallery_dl/extractor/pixiv.py | 5 +++-- test/results/pixiv.py | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py index ab7c18e0..d732894a 100644 --- a/gallery_dl/extractor/pixiv.py +++ b/gallery_dl/extractor/pixiv.py @@ -104,8 +104,9 @@ class PixivExtractor(Extractor): elif work["page_count"] == 1: url = meta_single_page["original_image_url"] if url == url_sanity: - self.log.debug("Skipping 'sanity_level' warning (%s)", - work["id"]) + self.log.warning( + "Unable to download work %s ('sanity_level' warning)", + work["id"]) continue work["date_url"] = self._date_from_url(url) yield Message.Url, url, text.nameext_from_url(url, work) diff --git a/test/results/pixiv.py b/test/results/pixiv.py index 038ddb5d..0674369b 100644 --- a/test/results/pixiv.py +++ b/test/results/pixiv.py @@ -163,6 +163,14 @@ __tests__ = ( "#count" : ">= 10", }, +{ + "#url" : "https://www.pixiv.net/artworks/966412", + "#comment" : "limit_sanity_level_360.png (#4327, #5180)", + "#category": ("", "pixiv", "work"), + "#class" : pixiv.PixivWorkExtractor, + "#count" : 0, +}, + { "#url" : "https://www.pixiv.net/en/artworks/966412", "#category": ("", "pixiv", "work"),