From 19ec46863587758fa6de274df293ede09b10eeb3 Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Sun, 3 Jan 2021 13:37:24 +0100 Subject: [PATCH] [twitter] Add support for summary card(closes #25121) --- youtube_dl/extractor/twitter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py index a35e1686c..1190d721e 100644 --- a/youtube_dl/extractor/twitter.py +++ b/youtube_dl/extractor/twitter.py @@ -488,6 +488,11 @@ class TwitterIE(TwitterBaseIE): 'url': get_binding_value('broadcast_url'), 'ie_key': TwitterBroadcastIE.ie_key(), }) + elif card_name == 'summary': + info.update({ + '_type': 'url', + 'url': get_binding_value('card_url'), + }) # amplify, promo_video_website, promo_video_convo, appplayer, ... else: is_amplify = card_name == 'amplify' -- 2.22.2