[pixiv] Implement sanity handling for ugoira works (#4327 #6297 #7285 #7434)

* [pixiv] Implement sanity handling for ugoira works

* [pixiv] fix PEP formatting for sanity ugoira handling

* [pixiv] update Ugoira AJAX error message

* [pixiv] respect disabled 'ugoira' option

* [tests] add 'limit_sanity_level' ugoira test

---------

Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
This commit is contained in:
prowlguru
2025-05-21 20:01:09 +00:00
committed by GitHub
parent 3ba4404d21
commit b8f3ca6c4e
2 changed files with 33 additions and 3 deletions

View File

@@ -286,6 +286,14 @@ __tests__ = (
],
},
{
"#url" : "https://www.pixiv.net/en/artworks/103841583",
"#comment" : "Ugoira limit_sanity_level_360.png (#4327 #6297 #7285)",
"#class" : pixiv.PixivWorkExtractor,
"#auth" : True,
"#urls" : "https://i.pximg.net/img-zip-ugoira/img/2022/12/23/23/36/13/103841583_ugoira1920x1080.zip",
},
{
"#url" : "https://www.pixiv.net/en/artworks/104582860",
"#comment" : "deleted limit_sanity_level_360.png work (#6339)",