projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
491ee7e
)
[twitter] Add support for summary card(closes #25121)
author
Remita Amine
<remitamine@gmail.com>
Sun, 3 Jan 2021 12:37:24 +0000
(13:37 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sun, 3 Jan 2021 12:37:24 +0000
(13:37 +0100)
youtube_dl/extractor/twitter.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitter.py
b/youtube_dl/extractor/twitter.py
index a35e1686c26a303d97a8e939c73ab86b1f7c9883..1190d721ed789e0094dfb76c2f781d2f05238e26 100644
(file)
--- 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'