[sankaku] add enumeration index for books (#1388)
This commit is contained in:
@@ -123,6 +123,8 @@ class SankakuPoolExtractor(SankakuExtractor):
|
||||
def metadata(self):
|
||||
pool = SankakuAPI(self).pools(self.pool_id)
|
||||
self._posts = pool.pop("posts")
|
||||
for num, post in enumerate(self._posts, 1):
|
||||
post["num"] = num
|
||||
return {"pool": pool}
|
||||
|
||||
def posts(self):
|
||||
|
||||
Reference in New Issue
Block a user