diff --git a/gallery_dl/extractor/2chen.py b/gallery_dl/extractor/2chen.py index 4b5c99de..f7cdb93a 100644 --- a/gallery_dl/extractor/2chen.py +++ b/gallery_dl/extractor/2chen.py @@ -65,18 +65,21 @@ class _2chenBoardExtractor(Extractor): """Extractor for 2chen boards""" category = "2chen" subcategory = "board" - pattern = r"(?:https?://)?2chen\.moe/([^/?#]+)(?:catalog)?" + pattern = r"(?:https?://)?2chen\.moe/([^/?#]+)/?(?:catalog)?$" test = ( ("https://2chen.moe/co/", { "pattern": _2chenThreadExtractor.pattern }), + ("https://2chen.moe/co", { + "pattern": _2chenThreadExtractor.pattern + }), ("https://2chen.moe/co/catalog", { "pattern": _2chenThreadExtractor.pattern })) def __init__(self, match): Extractor.__init__(self, match) - self.board = match.group(1) + self.board = match.group() def items(self): url = "https://2chen.moe/{}/catalog".format(self.board)