Skip to content

Commit

Permalink
[sankaku] add enumeration index for books (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Mar 23, 2021
1 parent 139fb84 commit 2dffd23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gallery_dl/extractor/sankaku.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def __init__(self, match):
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):
Expand Down

0 comments on commit 2dffd23

Please sign in to comment.