1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[artstation] create directories per asset (closes #2136)

This commit is contained in:
Mike Fährmann 2021-12-25 16:57:58 +01:00
parent 49a50fb2eb
commit f3d61de18d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -29,12 +29,12 @@ class ArtstationExtractor(Extractor):
def items(self):
data = self.metadata()
yield Message.Directory, data
for project in self.projects():
for asset in self.get_project_assets(project["hash_id"]):
asset.update(data)
adict = asset["asset"]
yield Message.Directory, asset
if adict["has_embedded_player"] and self.external:
player = adict["player_embedded"]