From 2952add4a8b108abf09e3b0f809c0754305cc23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 12 Dec 2022 12:08:19 +0100 Subject: [PATCH] [reddit] increase 'id-max' default value (#3397) to float("inf") --- docs/gallery-dl.conf | 4 ++-- gallery_dl/extractor/reddit.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index 51a93200..98974e9b 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -251,8 +251,8 @@ "date-min": 0, "date-max": 253402210800, "date-format": "%Y-%m-%dT%H:%M:%S", - "id-min": "0", - "id-max": "zik0zj", + "id-min": null, + "id-max": null, "recursion": 0, "videos": true }, diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index 0ec8478b..204562e7 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -428,7 +428,7 @@ class RedditAPI(): def _pagination(self, endpoint, params): id_min = self._parse_id("id-min", 0) - id_max = self._parse_id("id-max", 2147483647) + id_max = self._parse_id("id-max", float("inf")) date_min, date_max = self.extractor._get_date_min_max(0, 253402210800) while True: