[twitter] changes to 'cards' option

- change default value to 'true'
- only invoke youtube-dl for cards unsupported by gallery
  when 'cards' is set to "ytdl"

"cards": true   --> only download card images
"cards": "ytdl" --> download card images and
                    use youtube_dl on otherwise unsupported cards
This commit is contained in:
Mike Fährmann
2022-01-15 22:02:57 +01:00
parent 2d34d8ff8b
commit f2e8aedd74
3 changed files with 10 additions and 6 deletions

View File

@@ -2030,11 +2030,15 @@ Description
extractor.twitter.cards
-----------------------
Type
``bool``
``bool`` or ``string``
Default
``false``
``true``
Description
Fetch media from `Cards <https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards>`__.
Controls how to handle `Twitter Cards <https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards>`__.
* ``false``: Ignore cards
* ``true``: Download image content from supported cards
* ``"ytdl"``: Additionally download video content from unsupported cards using `youtube-dl`_
extractor.twitter.conversations