mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-02-01 03:51:42 +01:00
[sankaku] update URL patterns
This commit is contained in:
parent
119755a5a3
commit
645b4627ef
@ -117,7 +117,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|pool/show)/(\d+)"
|
||||
pattern = BASE_PATTERN + r"/(?:books|pools?/show)/(\d+)"
|
||||
example = "https://sankaku.app/books/12345"
|
||||
|
||||
def __init__(self, match):
|
||||
@ -143,7 +143,7 @@ class SankakuPostExtractor(SankakuExtractor):
|
||||
"""Extractor for single posts from sankaku.app"""
|
||||
subcategory = "post"
|
||||
archive_fmt = "{id}"
|
||||
pattern = BASE_PATTERN + r"/post(?:s|/show)/([0-9a-f]+)"
|
||||
pattern = BASE_PATTERN + r"/posts?(?:/show)?/([0-9a-f]+)"
|
||||
example = "https://sankaku.app/post/show/12345"
|
||||
|
||||
def __init__(self, match):
|
||||
|
@ -111,6 +111,12 @@ __tests__ = (
|
||||
"#class" : sankaku.SankakuPoolExtractor,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://chan.sankakucomplex.com/pools/show/90",
|
||||
"#category": ("booru", "sankaku", "pool"),
|
||||
"#class" : sankaku.SankakuPoolExtractor,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://sankaku.app/post/show/360451",
|
||||
"#category": ("booru", "sankaku", "post"),
|
||||
@ -173,6 +179,16 @@ __tests__ = (
|
||||
"md5": "f8ba89043078f0e4be2d9c46550b840a",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://chan.sankakucomplex.com/en/posts/show/ac8e3b92ea328ce9cf7211e69c905bf9",
|
||||
"#comment" : "/en/posts/show/HEX",
|
||||
"#category": ("booru", "sankaku", "post"),
|
||||
"#class" : sankaku.SankakuPostExtractor,
|
||||
|
||||
"id" : 360451,
|
||||
"md5": "ac8e3b92ea328ce9cf7211e69c905bf9",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://chan.sankakucomplex.com/post/show/360451",
|
||||
"#category": ("booru", "sankaku", "post"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user