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