[belazon] fix starting from a specific page

with the default '"order-posts": "desc"'
This commit is contained in:
Mike Fährmann
2025-11-23 18:12:10 +01:00
parent 8ae4c553d2
commit 60b3f66950

View File

@@ -114,7 +114,7 @@ class BellazonExtractor(Extractor):
def _pagination_reverse(self, base, pnum=None):
base = f"{self.root}{base}"
url = f"{base}/page/9999/" # force redirect to highest page number
url = f"{base}/page/{'9999' if pnum is None else pnum}/"
with self.request(url) as response:
parts = response.url.rsplit("/", 3)
pnum = text.parse_int(parts[2]) if parts[1] == "page" else 1