commit: 19ec46863587758fa6de274df293ede09b10eeb3
parent 491ee7efe45c287cfb8b28e6d74290d844b8bbb8
Author: Remita Amine <remitamine@gmail.com>
Date: Sun, 3 Jan 2021 13:37:24 +0100
[twitter] Add support for summary card(closes #25121)
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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'