From 5532e9c1581f86b248d4ab5a3efe39ec926251ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 4 Jan 2020 21:26:55 +0100 Subject: [PATCH] [twitter] handle quoted tweets (#526) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … and categorize them as retweets --- gallery_dl/extractor/twitter.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 5c41f99c..a2dc047b 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -155,6 +155,16 @@ class TwitterExtractor(Extractor): cl, _, cr = content.rpartition("pic.twitter.com/") data["content"] = cl if cl and len(cr) < 16 else content + if extr('
')[2]), + } + return data def _video_from_tweet(self, tweet_id): @@ -319,6 +329,11 @@ class TwitterTweetExtractor(TwitterExtractor): ("https://twitter.com/i/web/status/1155074198240292865", { "pattern": r"https://pbs.twimg.com/media/EAel0vUUYAAZ4Bq.jpg:orig", }), + # quoted tweet (#526) + ("https://twitter.com/Meiyu_miu/status/1070693241413021696", { + "count": 4, + "keyword": "0c627af2b8cdccc7e0da8fd221155c4a4a3141a8", + }), ) def __init__(self, match):