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:
commit
4611237f8c
@ -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.
|
||||
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user