[twitter] rename 'text-only' to 'text-tweets' (#570)

This commit is contained in:
Mike Fährmann 2021-05-22 21:07:21 +02:00
parent da6806a161
commit b5affc62aa
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 5 additions and 4 deletions

View File

@ -1715,14 +1715,14 @@ Description
will be taken from the original Tweets, not the Retweets. will be taken from the original Tweets, not the Retweets.
extractor.twitter.text-only extractor.twitter.text-tweets
--------------------------- -----------------------------
Type Type
``bool`` ``bool``
Default Default
``false`` ``false``
Description Description
Produce metadata for Tweets without media content. Also emit metadata for text-only Tweets without media content.
This only has an effect with a ``metadata`` (or ``exec``) post processor This only has an effect with a ``metadata`` (or ``exec``) post processor
with `"event": "post" <metadata.event_>`_ with `"event": "post" <metadata.event_>`_

View File

@ -259,6 +259,7 @@
"quoted": true, "quoted": true,
"replies": true, "replies": true,
"retweets": true, "retweets": true,
"text-tweets": false,
"twitpic": false, "twitpic": false,
"users": "timeline", "users": "timeline",
"videos": true "videos": true

View File

@ -32,7 +32,7 @@ class TwitterExtractor(Extractor):
def __init__(self, match): def __init__(self, match):
Extractor.__init__(self, match) Extractor.__init__(self, match)
self.user = match.group(1) self.user = match.group(1)
self.textonly = self.config("text-only", False) self.textonly = self.config("text-tweets", False)
self.retweets = self.config("retweets", True) self.retweets = self.config("retweets", True)
self.replies = self.config("replies", True) self.replies = self.config("replies", True)
self.twitpic = self.config("twitpic", False) self.twitpic = self.config("twitpic", False)