[exhentai][schalenetwork] enable 'tags' categories by default
This commit is contained in:
@@ -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