[vichan] recognize board url w/o trailing slash (#3087)
This commit is contained in:
@@ -122,7 +122,7 @@ class VichanThreadExtractor(VichanExtractor):
|
|||||||
class VichanBoardExtractor(VichanExtractor):
|
class VichanBoardExtractor(VichanExtractor):
|
||||||
"""Extractor for vichan boards"""
|
"""Extractor for vichan boards"""
|
||||||
subcategory = "board"
|
subcategory = "board"
|
||||||
pattern = BASE_PATTERN + r"/([^/?#]+)/(?:index|catalog|\d+|$)"
|
pattern = BASE_PATTERN + r"/([^/?#]+)(?:/index|/catalog|/\d+|/?$)"
|
||||||
test = (
|
test = (
|
||||||
("https://8kun.top/v/index.html", {
|
("https://8kun.top/v/index.html", {
|
||||||
"pattern": VichanThreadExtractor.pattern,
|
"pattern": VichanThreadExtractor.pattern,
|
||||||
@@ -138,7 +138,7 @@ class VichanBoardExtractor(VichanExtractor):
|
|||||||
("https://wikieat.club/cel/catalog.html"),
|
("https://wikieat.club/cel/catalog.html"),
|
||||||
("https://wikieat.club/cel/2.html"),
|
("https://wikieat.club/cel/2.html"),
|
||||||
|
|
||||||
("https://smuglo.li/a/", {
|
("https://smuglo.li/a", {
|
||||||
"pattern": VichanThreadExtractor.pattern,
|
"pattern": VichanThreadExtractor.pattern,
|
||||||
"count": ">= 100",
|
"count": ">= 100",
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user