[zerochan] use API by default (#3669)

add 'pagination' option
This commit is contained in:
Mike Fährmann
2024-02-25 00:36:14 +01:00
parent efccd3d3d1
commit cc6b9e4c18
3 changed files with 117 additions and 8 deletions

View File

@@ -12,8 +12,27 @@ __tests__ = (
"#url" : "https://www.zerochan.net/Perth+%28Kantai+Collection%29",
"#category": ("booru", "zerochan", "tag"),
"#class" : zerochan.ZerochanTagExtractor,
"#pattern" : r"https://static\.zerochan\.net/\.full\.\d+\.jpg",
"#count" : "> 50",
"extension" : r"jpg",
"file_url" : r"re:https://static\.zerochan\.net/\.full\.\d+\.jpg",
"filename" : r"re:\.full\.\d+",
"height" : int,
"id" : int,
"search_tags": "Perth (Kantai Collection)",
"tag" : r"re:(Perth \(Kantai Collection\)|Kantai Collection)",
"tags" : list,
"width" : int,
},
{
"#url" : "https://www.zerochan.net/Perth+%28Kantai+Collection%29",
"#category": ("booru", "zerochan", "tag"),
"#class" : zerochan.ZerochanTagExtractor,
"#options" : {"pagination": "html"},
"#pattern" : r"https://static\.zerochan\.net/.+\.full\.\d+\.(jpg|png)",
"#count" : "> 24",
"#count" : "> 45",
"extension" : r"re:jpg|png",
"file_url" : r"re:https://static\.zerochan\.net/.+\.full\.\d+\.(jpg|png)",
@@ -58,8 +77,37 @@ __tests__ = (
"Theme:Personification",
"Theme:Pins",
"Theme:Ribbon",
"Theme:Shirt",
"Theme:Short Hair",
"Theme:Top",
],
"uploader": "YukinoTokisaki",
"width" : 1920,
},
{
"#url" : "https://www.zerochan.net/2920445",
"#category": ("booru", "zerochan", "image"),
"#class" : zerochan.ZerochanImageExtractor,
"#pattern" : r"https://static\.zerochan\.net/Perth\.%28Kantai\.Collection%29\.full.2920445\.jpg",
"#auth" : False,
"author" : "YeFan 葉凡",
"date" : "dt:2020-04-24 21:33:44",
"file_url": "https://static.zerochan.net/Perth.%28Kantai.Collection%29.full.2920445.jpg",
"filename": "Perth.(Kantai.Collection).full.2920445",
"height" : 1366,
"id" : 2920445,
"path" : [
"Kantai Collection",
"Perth (Kantai Collection)",
],
"size" : 1975296,
"tags" : [
"Mangaka:YeFan 葉凡",
"Game:Kantai Collection",
"Character:Perth (Kantai Collection)",
"Theme:Firefighter Outfit",
"Theme:Pins",
],
"uploader": "YukinoTokisaki",
"width" : 1920,