From 889c7b8caec8fc0b9c7a583ed1d9cfa43518fc42 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 1 Mar 2025 19:51:39 -0500 Subject: New upstream version 1.29.0. --- gallery_dl/extractor/reddit.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gallery_dl/extractor/reddit.py') diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index 89eafc8..f36b1f5 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -259,6 +259,8 @@ class RedditSubredditExtractor(RedditExtractor): self.subreddit, sub, params = match.groups() self.params = text.parse_query(params) if sub: + if sub == "search" and "restrict_sr" not in self.params: + self.params["restrict_sr"] = "1" self.subcategory += "-" + sub RedditExtractor.__init__(self, match) -- cgit v1.2.3