diff --git a/docs/configuration.rst b/docs/configuration.rst index 532d5307..58fb6285 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -2020,6 +2020,16 @@ Description Logout and retry as guest when access to another user's Tweets is blocked. +extractor.twitter.pinned +------------------------ +Type + ``bool`` +Default + ``false`` +Description + Fetch media from pinned Tweets. + + extractor.twitter.quoted ------------------------ Type diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index c89f4b9b..56be1346 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -266,6 +266,7 @@ "password": null, "cards": false, "conversations": false, + "pinned": false, "quoted": false, "replies": true, "retweets": false, diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 568ee2eb..00f3b041 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -36,6 +36,7 @@ class TwitterExtractor(Extractor): self.retweets = self.config("retweets", False) self.replies = self.config("replies", True) self.twitpic = self.config("twitpic", False) + self.pinned = self.config("pinned", False) self.quoted = self.config("quoted", False) self.videos = self.config("videos", True) self.cards = self.config("cards", False) @@ -838,7 +839,7 @@ class TwitterAPI(): if params is None: params = self.params.copy() original_retweets = (self.extractor.retweets == "original") - pinned_tweet = True + pinned_tweet = self.extractor.pinned while True: cursor = tweet = None