[sankaku] support alphanumeric book/pool IDs (#6757)

This commit is contained in:
Mike Fährmann
2025-01-02 15:49:07 +01:00
parent bd7320fb7d
commit 0c584f9be7
2 changed files with 9 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ class SankakuPoolExtractor(SankakuExtractor):
subcategory = "pool"
directory_fmt = ("{category}", "pool", "{pool[id]} {pool[name_en]}")
archive_fmt = "p_{pool}_{id}"
pattern = BASE_PATTERN + r"/(?:books|pools?/show)/(\d+)"
pattern = BASE_PATTERN + r"/(?:books|pools?/show)/(\w+)"
example = "https://sankaku.app/books/12345"
def __init__(self, match):

View File

@@ -105,6 +105,14 @@ __tests__ = (
"#count" : 5,
},
{
"#url" : "https://www.sankakucomplex.com/books/8YEa7EERmD0",
"#comment" : "alphanumeric book/pool ID (#6757)",
"#category": ("booru", "sankaku", "pool"),
"#class" : sankaku.SankakuPoolExtractor,
"#count" : 5,
},
{
"#url" : "https://www.sankakucomplex.com/books/90",
"#category": ("booru", "sankaku", "pool"),