Skip to content

Commit

Permalink
[nozomi] add 'num' enumeration index (closes #1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jan 12, 2021
1 parent 2da9068 commit 318876e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/nozomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def items(self):
del post[key]

yield Message.Directory, post
for image in images:
for post["num"], image in enumerate(images, 1):
post["url"] = url = text.urljoin(self.root, image["imageurl"])
text.nameext_from_url(url, post)
post["is_video"] = bool(image.get("is_video"))
Expand Down Expand Up @@ -111,7 +111,7 @@ class NozomiPostExtractor(NozomiExtractor):
# multiple images per post
("https://nozomi.la/post/25588032.html", {
"url": "6aa3b7db385abcc9d374bdffd19187bccbf8f228",
"keyword": "8c3a2561ccc9ad429be9850d1383a952d0b4a8ab",
"keyword": "f60e048df36308b6b25dfaac419b586895d360bc",
"count": 7,
}),
# empty 'date' (#1163)
Expand Down

0 comments on commit 318876e

Please sign in to comment.