Skip to content

Commit

Permalink
[twitter] add 'reply' metadata field (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Apr 24, 2020
1 parent 12ff23b commit c4371a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def _data_from_tweet(self, tweet):
extr = text.extract_from(tweet)
data = {
"tweet_id" : text.parse_int(extr('data-tweet-id="' , '"')),
"reply" : bool(extr('data-is-reply-to="' , '"')),
"retweet_id": text.parse_int(extr('data-retweet-id="', '"')),
"retweeter" : extr('data-retweeter="' , '"'),
"author" : {
Expand Down

0 comments on commit c4371a6

Please sign in to comment.