From b5affc62aa84847f3ac0c39eda675f3ced761a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 22 May 2021 21:07:21 +0200 Subject: [PATCH] [twitter] rename 'text-only' to 'text-tweets' (#570) --- docs/configuration.rst | 6 +++--- docs/gallery-dl.conf | 1 + gallery_dl/extractor/twitter.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 035ed7af..1580132d 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -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" `_ diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index ac7e97dc..7497cd65 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -259,6 +259,7 @@ "quoted": true, "replies": true, "retweets": true, + "text-tweets": false, "twitpic": false, "users": "timeline", "videos": true diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index cc5c619a..afeebb09 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -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)