[twitter] disable 'cards' by default

This commit is contained in:
Mike Fährmann
2022-05-21 15:39:25 +02:00
parent 79dce8ae68
commit 9df4e0f65b
3 changed files with 3 additions and 3 deletions

View File

@@ -2224,7 +2224,7 @@ extractor.twitter.cards
Type Type
``bool`` or ``string`` ``bool`` or ``string``
Default Default
``true`` ``false``
Description Description
Controls how to handle `Twitter 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>`__.

View File

@@ -271,7 +271,7 @@
{ {
"username": null, "username": null,
"password": null, "password": null,
"cards": true, "cards": false,
"conversations": false, "conversations": false,
"pinned": false, "pinned": false,
"quoted": false, "quoted": false,

View File

@@ -39,7 +39,7 @@ class TwitterExtractor(Extractor):
self.pinned = self.config("pinned", False) self.pinned = self.config("pinned", False)
self.quoted = self.config("quoted", False) self.quoted = self.config("quoted", False)
self.videos = self.config("videos", True) self.videos = self.config("videos", True)
self.cards = self.config("cards", True) self.cards = self.config("cards", False)
self._user_cache = {} self._user_cache = {}
self._init_sizes() self._init_sizes()