[tiktok] extract more story item list pages (#8932)

* [tiktok] extractor more story item list pages
* [tiktok] invert hasMore logic
This commit is contained in:
CasualYouTuber31
2026-01-26 07:57:23 +00:00
committed by GitHub
parent f80e294132
commit d19d5c8b6e

View File

@@ -867,7 +867,9 @@ class TiktokItemCursor(TiktokPaginationCursor):
# item list isn't in the response, the extraction was going to fail
# anyway.
self.cursor += len(data[self.list_key])
return not data.get("hasMore", False)
if "hasMore" in data:
return not data["hasMore"]
return not data.get("HasMoreAfter", False)
class TiktokPaginationRequest: