Skip to content

Commit

Permalink
[vichan] recognize board url w/o trailing slash (#3087)
Browse files Browse the repository at this point in the history
  • Loading branch information
enduser420 authored and mikf committed Oct 29, 2022
1 parent dc3fefe commit 1ad35bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/vichan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
}),
Expand Down

0 comments on commit 1ad35bd

Please sign in to comment.