[sankaku] match URLs with 'www' subdomain (#5907)

pull/5951/head
Mike Fährmann 2 months ago
parent 279854cd9e
commit 84eefeebd6
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -16,7 +16,7 @@ import collections
import re
BASE_PATTERN = r"(?:https?://)?" \
r"(?:(?:chan|beta|black|white)\.sankakucomplex\.com|sankaku\.app)" \
r"(?:(?:chan|www|beta|black|white)\.sankakucomplex\.com|sankaku\.app)" \
r"(?:/[a-z]{2})?"

@ -17,6 +17,12 @@ __tests__ = (
"#count" : 5,
},
{
"#url" : "https://www.sankakucomplex.com/?tags=bonocho",
"#category": ("booru", "sankaku", "tag"),
"#class" : sankaku.SankakuTagExtractor,
},
{
"#url" : "https://beta.sankakucomplex.com/?tags=bonocho",
"#category": ("booru", "sankaku", "tag"),
@ -99,6 +105,12 @@ __tests__ = (
"#count" : 5,
},
{
"#url" : "https://www.sankakucomplex.com/books/90",
"#category": ("booru", "sankaku", "pool"),
"#class" : sankaku.SankakuPoolExtractor,
},
{
"#url" : "https://beta.sankakucomplex.com/books/90",
"#category": ("booru", "sankaku", "pool"),

Loading…
Cancel
Save