[moebooru] add 'metadata' option (#4646)

for extended 'pool' metadata
This commit is contained in:
Mike Fährmann
2023-10-12 21:32:41 +02:00
parent d194ea68a9
commit 2974b8e3c8
4 changed files with 48 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
# published by the Free Software Foundation.
from gallery_dl.extractor import moebooru
from gallery_dl import exception
__tests__ = (
@@ -54,6 +55,15 @@ __tests__ = (
"#sha1_content": "cf0546e38a93c2c510a478f8744e60687b7a8426",
},
{
"#url" : "https://konachan.com/pool/show/95",
"#comment" : "'metadata' option (#4646)",
"#category": ("moebooru", "konachan", "pool"),
"#class" : moebooru.MoebooruPoolExtractor,
"#options" : {"metadata": True},
"#exception": exception.HttpError,
},
{
"#url" : "https://konachan.net/pool/show/95",
"#category": ("moebooru", "konachan", "pool"),