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
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())