1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

continue downloading when the item is made private on pixiv

This commit is contained in:
johnsmith1202gmail 2023-08-30 18:21:06 +00:00
parent 28798594e8
commit d3046561d4

View File

@ -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"):