From 08db8435f1fc6685a03f3dab7e34699f8b132170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 13 Jun 2022 16:27:30 +0200 Subject: [PATCH] [twitter] fix pagination for conversion tweets a relic from the switch to GraphQL API --- gallery_dl/extractor/twitter.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 2f7d3b61..cb055fcc 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -722,10 +722,10 @@ class TwitterTweetExtractor(TwitterExtractor): "date" : "dt:2020-08-20 04:00:28", }, }), - # all Tweets from a conversation (#1319) - ("https://twitter.com/BlankArts_/status/1323314488611872769", { + # all Tweets from a 'conversation' (#1319) + ("https://twitter.com/supernaturepics/status/604341487988576256", { "options": (("conversations", True),), - "count": ">= 50", + "count": 5, }), # retweet with missing media entities (#1555) ("https://twitter.com/morino_ya/status/1392763691599237121", { @@ -1256,6 +1256,8 @@ class TwitterAPI(): tweets.append(entry) elif esw("cursor-bottom-"): cursor = entry["content"] + if "itemContent" in cursor: + cursor = cursor["itemContent"] if not cursor.get("stopOnEmptyResponse", True): # keep going even if there are no tweets tweet = True