1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[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.
extractor.twitter.text-only
---------------------------
extractor.twitter.text-tweets
-----------------------------
Type
``bool``
Default
``false``
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
with `"event": "post" <metadata.event_>`_

View File

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

View File

@ -32,7 +32,7 @@ class TwitterExtractor(Extractor):
def __init__(self, match):
Extractor.__init__(self, match)
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.replies = self.config("replies", True)
self.twitpic = self.config("twitpic", False)