Skip to content

Commit

Permalink
[twitter] set 'retweet_id' for original retweets (#1481)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jul 2, 2021
1 parent 5323c1c commit 414bdc9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,9 @@ class TwitterTweetExtractor(TwitterExtractor):
"options": (("retweets", "original"),),
"count": 2,
"keyword": {
"tweet_id": 1296296016002547713,
"date" : "dt:2020-08-20 04:00:28",
"tweet_id" : 1296296016002547713,
"retweet_id": 1296296016002547713,
"date" : "dt:2020-08-20 04:00:28",
},
}),
# all Tweets from a conversation (#1319)
Expand Down Expand Up @@ -806,6 +807,7 @@ def _pagination(self, endpoint, params=None):
if original_retweets:
if not retweet:
continue
retweet["retweeted_status_id_str"] = retweet["id_str"]
retweet["_retweet_id_str"] = tweet["id_str"]
tweet = retweet
elif retweet:
Expand Down

0 comments on commit 414bdc9

Please sign in to comment.