[pixiv] move 'novel' extractors to a 'pixiv-novel' category (#7746)
TODO: - restore full 'include' functionality - allow remapping category:subcategory pairs
This commit is contained in:
@@ -122,6 +122,8 @@ CATEGORY_MAP = {
|
||||
"photovogue" : "PhotoVogue",
|
||||
"pidgiwiki" : "PidgiWiki",
|
||||
"pixeldrain" : "pixeldrain",
|
||||
"pixiv" : "[pixiv]",
|
||||
"pixiv-novel" : "[pixiv] Novels",
|
||||
"pornimage" : "Porn Image",
|
||||
"pornpics" : "PornPics.com",
|
||||
"pornreactor" : "PornReactor",
|
||||
@@ -566,7 +568,7 @@ def subcategory_text(bc, c, sc):
|
||||
|
||||
def category_key(c):
|
||||
"""Generate sorting keys by category"""
|
||||
return category_text(c[0]).lower()
|
||||
return category_text(c[0]).lower().lstrip("[")
|
||||
|
||||
|
||||
def subcategory_key(sc):
|
||||
@@ -610,6 +612,8 @@ def build_extractor_list():
|
||||
for subcategories in base.values():
|
||||
subcategories.sort(key=subcategory_key)
|
||||
|
||||
domains["pixiv-novel"] += "novel"
|
||||
|
||||
# add e-hentai.org
|
||||
default["e-hentai"] = default["exhentai"]
|
||||
domains["e-hentai"] = domains["exhentai"].replace("x", "-")
|
||||
|
||||
Reference in New Issue
Block a user