[sankaku] match URLs with 'www' subdomain (#5907)
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user