From 690b3ba20027f82a4737a90b92e778d7aedb6efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 29 Jan 2026 18:53:08 +0100 Subject: [PATCH] [civitai:user-posts] fix pagination (#8955) fix '400 Bad Request' errors when retrieving more than the first batch of posts. --- gallery_dl/extractor/civitai.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gallery_dl/extractor/civitai.py b/gallery_dl/extractor/civitai.py index 34983967..e65ff950 100644 --- a/gallery_dl/extractor/civitai.py +++ b/gallery_dl/extractor/civitai.py @@ -691,7 +691,7 @@ class CivitaiTrpcAPI(): self.root = extractor.root + "/api/trpc/" self.headers = { "content-type" : "application/json", - "x-client-version": "5.0.954", + "x-client-version": "5.0.1386", "x-client-date" : "", "x-client" : "web", "x-fingerprint" : "undefined", @@ -796,7 +796,6 @@ class CivitaiTrpcAPI(): def posts(self, params, defaults=True): endpoint = "post.getInfinite" - meta = {"cursor": ("Date",)} if defaults: params = self._merge_params(params, { @@ -811,8 +810,7 @@ class CivitaiTrpcAPI(): }) params = self._type_params(params) - return self._pagination(endpoint, params, meta, - user=("username" in params)) + return self._pagination(endpoint, params, user=("username" in params)) def collection(self, collection_id): endpoint = "collection.getById"