diff --git a/gallery_dl/extractor/tiktok.py b/gallery_dl/extractor/tiktok.py index 4d5d8112..0415ee0e 100644 --- a/gallery_dl/extractor/tiktok.py +++ b/gallery_dl/extractor/tiktok.py @@ -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: