1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

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

This commit is contained in:
Mike Fährmann 2018-09-14 17:51:46 +02:00
parent 69fd61ea86
commit fa64c38d5b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 6 additions and 2 deletions

View File

@ -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",

View File

@ -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):