From: Remita Amine Date: Sun, 3 Jan 2021 12:37:24 +0000 (+0100) Subject: [twitter] Add support for summary card(closes #25121) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=19ec46863587758fa6de274df293ede09b10eeb3;p=youtube-dl [twitter] Add support for summary card(closes #25121) --- 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'