From a94f9441487573ea84700936117f4535e78d32c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 20 Dec 2023 01:57:18 +0100 Subject: [PATCH] [twitter] default to 'tweets' timeline when 'replies' are enabled (#4953) --- docs/configuration.rst | 2 +- gallery_dl/extractor/twitter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index e7f4fc03..7d9f11f1 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -3447,7 +3447,7 @@ Description * ``"tweets"``: `/tweets `__ timeline + search * ``"media"``: `/media `__ timeline + search * ``"with_replies"``: `/with_replies `__ timeline + search - * ``"auto"``: ``"tweets"`` or ``"media"``, depending on `retweets `__ and `text-tweets `__ settings + * ``"auto"``: ``"tweets"`` or ``"media"``, depending on `retweets `__, `replies `__, and `text-tweets `__ settings extractor.twitter.text-tweets diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 726b8a19..a607d67b 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -550,7 +550,7 @@ class TwitterTimelineExtractor(TwitterExtractor): def _select_tweet_source(self): strategy = self.config("strategy") if strategy is None or strategy == "auto": - if self.retweets or self.textonly: + if self.retweets or self.replies or self.textonly: return self.api.user_tweets else: return self.api.user_media