1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-01-31 19:51:34 +01:00

merge #3457: [danbooru] extract uploader metadata (if option is set)

This commit is contained in:
Mike Fährmann 2023-01-01 21:20:39 +01:00
commit 4611237f8c
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 4 additions and 3 deletions

View File

@ -1028,7 +1028,8 @@ Type
Default
``false``
Description
Extract additional metadata (notes, artist commentary, parent, children)
Extract additional metadata
(notes, artist commentary, parent, children, uploader)
Note: This requires 1 additional HTTP request per post.

View File

@ -101,8 +101,8 @@ class DanbooruExtractor(BaseExtractor):
if self.extended_metadata:
template = (
"{}/posts/{}.json"
"?only=artist_commentary,children,notes,parent"
"{}/posts/{}.json?only=artist_commentary,children,notes,"
"parent,uploader"
)
resp = self.request(template.format(self.root, post["id"]))
post.update(resp.json())