1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[vichan] recognize board url w/o trailing slash (#3087)

This commit is contained in:
enduser420 2022-10-24 19:22:54 +05:30 committed by GitHub
parent ac6111e693
commit 2ff1897421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ class VichanThreadExtractor(VichanExtractor):
class VichanBoardExtractor(VichanExtractor):
"""Extractor for vichan boards"""
subcategory = "board"
pattern = BASE_PATTERN + r"/([^/?#]+)/(?:index|catalog|\d+|$)"
pattern = BASE_PATTERN + r"/([^/?#]+)(?:/index|/catalog|/\d+|/?$)"
test = (
("https://8kun.top/v/index.html", {
"pattern": VichanThreadExtractor.pattern,
@ -138,7 +138,7 @@ class VichanBoardExtractor(VichanExtractor):
("https://wikieat.club/cel/catalog.html"),
("https://wikieat.club/cel/2.html"),
("https://smuglo.li/a/", {
("https://smuglo.li/a", {
"pattern": VichanThreadExtractor.pattern,
"count": ">= 100",
}),