[simpcity] fix starting from a specific page (#8599)
with the default '"order-posts": "desc"'
This commit is contained in:
@@ -102,7 +102,7 @@ class SimpcityExtractor(Extractor):
|
|||||||
def _pagination_reverse(self, base, pnum=None):
|
def _pagination_reverse(self, base, pnum=None):
|
||||||
base = f"{self.root}{base}"
|
base = f"{self.root}{base}"
|
||||||
|
|
||||||
url = f"{base}/page-9999" # force redirect to last page
|
url = f"{base}/page-{'9999' if pnum is None else pnum}"
|
||||||
with self.request_page(url) as response:
|
with self.request_page(url) as response:
|
||||||
url = response.url
|
url = response.url
|
||||||
if url[-1] == "/":
|
if url[-1] == "/":
|
||||||
|
|||||||
Reference in New Issue
Block a user