From 990907572a48502b9a7fb52d60cde6ebe7ea06d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 1 Dec 2024 20:44:17 +0100 Subject: [PATCH] [pixiv] include user ID in failed AJAX warnings (#6581) --- gallery_dl/extractor/pixiv.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py index 0914977b..6207bf74 100644 --- a/gallery_dl/extractor/pixiv.py +++ b/gallery_dl/extractor/pixiv.py @@ -380,8 +380,9 @@ class PixivArtworksExtractor(PixivExtractor): ajax_ids.extend(map(int, body["manga"])) ajax_ids.sort() except Exception as exc: - self.log.warning("Unable to collect artwork IDs using AJAX " - "API (%s: %s)", exc.__class__.__name__, exc) + self.log.warning("u%s: Failed to collect artwork IDs " + "using AJAX API (%s: %s)", + self.user_id, exc.__class__.__name__, exc) else: works = self._extend_sanity(works, ajax_ids)