diff --git a/docs/configuration.rst b/docs/configuration.rst index 19f4809a..08075129 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -89,7 +89,7 @@ Description A `format string`_ to build the resulting filename image Note: Even if the value of the ``extension`` key is missing or - ``None``, it will filled in later when the file download is + ``None``, it will be filled in later when the file download is starting. This key is therefore always available to provide a valid filename extension. =========== ===== @@ -873,6 +873,18 @@ Description Controls whether to choose the GIF or MP4 version of an animation. =========== ===== +extractor.inkbunny.orderby +-------------------------- +=========== ===== +Type ``string`` +Default ``"create_datetime"`` +Description Value of the ``orderby`` parameter for submission searches. + + (See `API#Search `__ + for details) +=========== ===== + + extractor.instagram.highlights ------------------------------ =========== ===== diff --git a/gallery_dl/extractor/inkbunny.py b/gallery_dl/extractor/inkbunny.py index 4cec89f2..536ee587 100644 --- a/gallery_dl/extractor/inkbunny.py +++ b/gallery_dl/extractor/inkbunny.py @@ -128,10 +128,14 @@ class InkbunnyUserExtractor(InkbunnyExtractor): InkbunnyExtractor.__init__(self, match) def posts(self): + orderby = self.config("orderby") params = { "username": self.user, - "scraps": self.scraps, + "scraps" : self.scraps, + "orderby" : orderby, } + if orderby and orderby.startswith("unread_"): + params["unread_submissions"] = "yes" return self.api.search(params)