From 3b33c25378fde9fa04a802a9653deecaafe78b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 16 Nov 2025 19:17:08 +0100 Subject: [PATCH] [reddit] use REST API by default (#8559) --- docs/configuration.rst | 2 +- docs/gallery-dl.conf | 3 ++- gallery_dl/extractor/reddit.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 2d1f5aed..550d04bc 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -4984,7 +4984,7 @@ extractor.reddit.api Type ``string`` Default - ``"oauth"`` + ``"rest"`` Description Selects which API endpoints to use. diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index 7e02122a..9077afd6 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -672,11 +672,12 @@ }, "reddit": { + "cookies" : null, "client-id" : null, "user-agent" : null, "refresh-token": null, - "api" : "oauth", + "api" : "rest", "comments" : 0, "morecomments": false, "embeds" : true, diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index d9612779..4581c07b 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -394,7 +394,7 @@ class RedditAPI(): self.morecomments = config("morecomments", False) self._warn_429 = False - if config("api") == "rest": + if config("api") != "oauth": self.root = "https://www.reddit.com" self.headers = None self.authenticate = util.noop