Skip to content

Commit

Permalink
[pixiv] create directory for each "work" item (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Dec 11, 2018
1 parent 79f6755 commit f6bf66f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/pixiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def __init__(self):

def items(self):
metadata = self.get_metadata()

yield Message.Version, 1
yield Message.Directory, metadata

for work in self.works():
if not work["user"]["id"]:
Expand All @@ -46,6 +44,8 @@ def items(self):
work["tags"] = [tag["name"] for tag in work["tags"]]
work.update(metadata)

yield Message.Directory, work

if work["type"] == "ugoira":
if not self.load_ugoira:
continue
Expand Down

0 comments on commit f6bf66f

Please sign in to comment.