Skip to content

Commit

Permalink
[reddit] increase 'id-max' default value (#3397)
Browse files Browse the repository at this point in the history
to float("inf")
  • Loading branch information
mikf committed Dec 12, 2022
1 parent a001c9c commit 2952add
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/gallery-dl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
2 changes: 1 addition & 1 deletion gallery_dl/extractor/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def _call(self, endpoint, params):

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:
Expand Down

0 comments on commit 2952add

Please sign in to comment.