diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py index ffe8030f..1265a945 100644 --- a/gallery_dl/extractor/pixiv.py +++ b/gallery_dl/extractor/pixiv.py @@ -1210,6 +1210,10 @@ class PixivAppAPI(): self.extractor.wait(seconds=300) continue + if response.status_code == 403 \ + and "Artist has made their work private" in (error.get("message") or "").lower(): + raise exception.NotFoundError() + raise exception.StopExtraction("API request failed: %s", error) def _pagination(self, endpoint, params, key="illusts"):