[exhentai][schalenetwork] enable 'tags' categories by default
This commit is contained in:
@@ -3068,7 +3068,7 @@ extractor.exhentai.tags
|
||||
Type
|
||||
``bool``
|
||||
Default
|
||||
``false``
|
||||
``true``
|
||||
Description
|
||||
Group ``tags`` by type and
|
||||
provide them as ``tags_<type>`` metadata fields,
|
||||
@@ -5564,7 +5564,7 @@ extractor.schalenetwork.tags
|
||||
Type
|
||||
``bool``
|
||||
Default
|
||||
``false``
|
||||
``true``
|
||||
Description
|
||||
Group ``tags`` by type and
|
||||
provide them as ``tags_<type>`` metadata fields,
|
||||
|
||||
@@ -326,7 +326,7 @@
|
||||
"metadata": false,
|
||||
"original": true,
|
||||
"source" : null,
|
||||
"tags" : false,
|
||||
"tags" : true,
|
||||
"limits" : null,
|
||||
"limits-action" : "stop",
|
||||
"fallback-retries": 2
|
||||
@@ -416,7 +416,7 @@
|
||||
|
||||
"cbz" : false,
|
||||
"format": ["0", "1600", "1280", "980", "780"],
|
||||
"tags" : false
|
||||
"tags" : true
|
||||
},
|
||||
"hentaifoundry":
|
||||
{
|
||||
@@ -745,7 +745,7 @@
|
||||
|
||||
"cbz" : false,
|
||||
"format": ["0", "1600", "1280", "980", "780"],
|
||||
"tags" : false
|
||||
"tags" : true
|
||||
},
|
||||
"scrolller":
|
||||
{
|
||||
|
||||
@@ -247,7 +247,7 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor):
|
||||
if self.config("metadata", False):
|
||||
data.update(self.metadata_from_api())
|
||||
data["date"] = self.parse_timestamp(data["posted"])
|
||||
if self.config("tags", False):
|
||||
if self.config("tags", True):
|
||||
tags = collections.defaultdict(list)
|
||||
for tag in data["tags"]:
|
||||
type, _, value = tag.partition(":")
|
||||
|
||||
@@ -138,7 +138,7 @@ class SchalenetworkGalleryExtractor(SchalenetworkExtractor, GalleryExtractor):
|
||||
name = tag["name"]
|
||||
namespace = tag.get("namespace", 0)
|
||||
tags.append(types[namespace] + ":" + name)
|
||||
if self.config("tags", False):
|
||||
if self.config("tags", True):
|
||||
categories = collections.defaultdict(list)
|
||||
for tag in data["tags"]:
|
||||
categories[tag.get("namespace", 0)].append(tag["name"])
|
||||
|
||||
Reference in New Issue
Block a user