From 1ad35bd6e90b97ff7fc0722210e22992d854fe7e Mon Sep 17 00:00:00 2001 From: enduser420 <91022934+enduser420@users.noreply.github.com> Date: Mon, 24 Oct 2022 19:22:54 +0530 Subject: [PATCH] [vichan] recognize board url w/o trailing slash (#3087) --- gallery_dl/extractor/vichan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/vichan.py b/gallery_dl/extractor/vichan.py index 0f7becc40ed..2fafb56e0b8 100644 --- a/gallery_dl/extractor/vichan.py +++ b/gallery_dl/extractor/vichan.py @@ -122,7 +122,7 @@ def _process_8kun(post, data): 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", }),