[hitomi] disable extra 'metadata' by default

safes one HTTP request that not needed with default filename settings
This commit is contained in:
Mike Fährmann
2021-12-16 22:21:07 +01:00
parent 9a25534490
commit 099ed72de7
3 changed files with 4 additions and 3 deletions

View File

@@ -1265,7 +1265,7 @@ extractor.hitomi.metadata
Type
``bool``
Default
``true``
``false``
Description
Try to extract
``artist``, ``group``, ``parody``, and ``characters`` metadata.

View File

@@ -114,7 +114,7 @@
},
"hitomi":
{
"metadata": true
"metadata": false
},
"idolcomplex":
{

View File

@@ -26,6 +26,7 @@ class HitomiGalleryExtractor(GalleryExtractor):
("https://hitomi.la/galleries/867789.html", {
"pattern": r"https://[a-c]b.hitomi.la/images/./../[0-9a-f]+.jpg",
"keyword": "4873ef9a523621fc857b114e0b2820ba4066e9ae",
"options": (("metadata", True),),
"count": 16,
}),
# download test
@@ -71,7 +72,7 @@ class HitomiGalleryExtractor(GalleryExtractor):
self.info = info = json.loads(page.partition("=")[2])
data = self._data_from_gallery_info(info)
if self.config("metadata", True):
if self.config("metadata", False):
data.update(self._data_from_gallery_page(info))
return data