[pixiv] detect suspended/deleted accounts (#7990)

This commit is contained in:
Mike Fährmann
2025-08-08 09:04:14 +02:00
parent 66b2f7f53f
commit d5e2fe4f44
2 changed files with 19 additions and 7 deletions

View File

@@ -136,6 +136,7 @@ __tests__ = (
"#comment" : "deleted account with a different error",
"#class" : pixiv.PixivArtworksExtractor,
"#log" : "'User has left pixiv or the user ID does not exist.'",
"#exception": exception.NotFoundError,
},
{
@@ -175,6 +176,13 @@ __tests__ = (
"#class" : pixiv.PixivArtworksExtractor,
},
{
"#url" : "https://www.pixiv.net/users/70060776/artworks",
"#comment" : "suspended account (#7990)",
"#class" : pixiv.PixivArtworksExtractor,
"#exception": exception.NotFoundError,
},
{
"#url" : "https://www.pixiv.net/en/users/173530/avatar",
"#class" : pixiv.PixivAvatarExtractor,