[reddit] ignore 'id-max' value "zik0zj"/2147483647

(#3939, #3862, #3697, #3606, #3546, #3521, #3412)
This commit is contained in:
Mike Fährmann
2023-04-21 14:08:45 +02:00
parent 8586ee81be
commit 202f5d86a7

View File

@@ -459,6 +459,9 @@ class RedditAPI():
def _pagination(self, endpoint, params):
id_min = self._parse_id("id-min", 0)
id_max = self._parse_id("id-max", float("inf"))
if id_max == 2147483647:
self.log.debug("Ignoring 'id-max' setting \"zik0zj\"")
id_max = float("inf")
date_min, date_max = self.extractor._get_date_min_max(0, 253402210800)
while True: