[inkbunny] add 'orderby' option (#283)

This commit is contained in:
Mike Fährmann
2020-07-24 17:50:32 +02:00
parent 336e682a7a
commit 493cadb1e7
2 changed files with 18 additions and 2 deletions

View File

@@ -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)