Skip to content

Commit

Permalink
[twitter] Add support for summary card(closes #25121)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Jan 3, 2021
1 parent 491ee7e commit 19ec468
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions youtube_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,11 @@ def get_binding_value(k):
'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'
Expand Down

0 comments on commit 19ec468

Please sign in to comment.