[plurk] fix comment pagination

This commit is contained in:
Mike Fährmann
2019-11-27 19:39:56 +01:00
parent a3fa45bbb1
commit 2c332edaad
2 changed files with 5 additions and 3 deletions

View File

@@ -53,7 +53,9 @@ class PlurkExtractor(Extractor):
yield from info["responses"]
if not info["has_newer"]:
return
data["from_response_id"] = info["responses"][-1]["id"]
elif info["has_newer"] < 200:
del data["count"]
data["from_response_id"] = info["responses"][-1]["id"] + 1
@staticmethod
def _load(data):

View File

@@ -33,8 +33,8 @@ class WallhavenSearchExtractor(WallhavenExtractor):
("https://wallhaven.cc/search?q=touhou"),
(("https://wallhaven.cc/search?q=id%3A87"
"&categories=111&purity=100&sorting=date_added&order=asc&page=3"), {
"count": 5,
"url": "d477b68a534c3416d506ae1f159b25debab64678",
"pattern": r"https://w.wallhaven.cc/full/\w\w/wallhaven-\w+\.\w+",
"count": "<= 10",
}),
)