[sankaku] fix pagination for user favorites (#106)

pull/133/head
Mike Fährmann 6 years ago
parent 69fd61ea86
commit fa64c38d5b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -89,7 +89,7 @@ class MyportfolioUserExtractor(Extractor):
pattern = [BASE_PATTERN + r"/?$"]
test = [
("https://hannahcosgrove.myportfolio.com/", {
"url": "2d394ed7726bdd60da07454a2ba2a08c641b6c80",
"url": "846814f50114e586adfe1fe809fe0da004f22b46",
}),
("myportfolio:https://tooco.com.ar/", {
"count": ">= 40",

@ -225,8 +225,12 @@ class SankakuTagExtractor(SankakuExtractor):
return
yield from ids
next_url = text.extract(page, 'next-page-url="/?', '"', pos)[0]
if next_url:
params["next"] = text.parse_query(next_url)["next"]
else:
params["next"] = text.parse_int(ids[-1]) - 1
params["page"] = 2
params["next"] = text.parse_int(ids[-1]) - 1
class SankakuPoolExtractor(SankakuExtractor):

Loading…
Cancel
Save