Skip to content

Commit

Permalink
[pixiv] change 'sanity_level' debug message to a warning (#5180)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Apr 19, 2024
1 parent bffadf3 commit c9d3b5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gallery_dl/extractor/pixiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ def transform_tags(work):
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)
Expand Down
8 changes: 8 additions & 0 deletions test/results/pixiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@
"#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"),
Expand Down

0 comments on commit c9d3b5e

Please sign in to comment.