diff --git a/docs/configuration.rst b/docs/configuration.rst index fc3b678c..0dce61f2 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -3894,6 +3894,16 @@ Description * ``thumbnail_small`` (``"h":100,"w":100``) +extractor.patreon.user.date-max +------------------------------- +Type + |Date|_ +Default + ``0`` +Description + Sets the |Date|_ to start from. + + extractor.[philomena].api-key ----------------------------- Type diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index 2c57ce46..eb4a657c 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -508,7 +508,11 @@ "cursor" : true, "files" : ["images", "image_large", "attachments", "postfile", "content"], - "format-images": "download_url" + "format-images": "download_url", + + "user": { + "date-max" : 0 + } }, "pexels": { diff --git a/gallery_dl/extractor/patreon.py b/gallery_dl/extractor/patreon.py index d9f8cf55..fb2f32c1 100644 --- a/gallery_dl/extractor/patreon.py +++ b/gallery_dl/extractor/patreon.py @@ -407,6 +407,11 @@ class PatreonUserExtractor(PatreonExtractor): example = "https://www.patreon.com/home" def posts(self): + if date_max := self._get_date_min_max(None, None)[1]: + self._cursor = cursor = \ + util.datetime_from_timestamp(date_max).isoformat() + self._init_cursor = lambda: cursor + url = self._build_url("stream", ( "&filter[is_following]=true" "&json-api-use-default-includes=false"