[exhentai][schalenetwork] enable 'tags' categories by default

This commit is contained in:
Mike Fährmann
2026-02-03 10:49:35 +01:00
parent d232f0d252
commit 5ddee423ed
4 changed files with 7 additions and 7 deletions

View File

@@ -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(":")

View File

@@ -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"])