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:
parent
69fd61ea86
commit
fa64c38d5b
@ -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…
Reference in New Issue
Block a user