diff options
author | Remita Amine <remitamine@gmail.com> | 2021-01-03 13:37:24 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2021-01-03 13:37:24 +0100 |
commit | 19ec46863587758fa6de274df293ede09b10eeb3 (patch) | |
tree | 81edde895ffaa6675ca551893386157378103f9e /youtube_dl/extractor/twitter.py | |
parent | 491ee7efe45c287cfb8b28e6d74290d844b8bbb8 (diff) |
[twitter] Add support for summary card(closes #25121)
Diffstat (limited to 'youtube_dl/extractor/twitter.py')
-rw-r--r-- | youtube_dl/extractor/twitter.py | 5 |
1 files changed, 5 insertions, 0 deletions
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' |