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