From c4371a6970bee041065e88f17f9628ac72ca13e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 24 Apr 2020 22:31:24 +0200 Subject: [PATCH] [twitter] add 'reply' metadata field (#705) --- gallery_dl/extractor/twitter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 03ce3dd43a..10f9fb073c 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -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" : {