[twitter] Add support for summary card(closes #25121)
authorRemita Amine <remitamine@gmail.com>
Sun, 3 Jan 2021 12:37:24 +0000 (13:37 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 3 Jan 2021 12:37:24 +0000 (13:37 +0100)
youtube_dl/extractor/twitter.py

index a35e1686c26a303d97a8e939c73ab86b1f7c9883..1190d721ed789e0094dfb76c2f781d2f05238e26 100644 (file)
@@ -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'