From 77d46e6f0cff1638d48987d456b5a7792878da38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 25 Dec 2023 15:22:37 +0100 Subject: [PATCH] [lynxchan] update 'bbw-chan' domain (#4970) --- docs/supportedsites.md | 2 +- gallery_dl/extractor/lynxchan.py | 8 ++++---- test/results/bbw-chan.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/supportedsites.md b/docs/supportedsites.md index 9ee1ef14..8e4c59a1 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -1193,7 +1193,7 @@ Consider all listed sites to potentially be NSFW. Bbw-chan - https://bbw-chan.nl/ + https://bbw-chan.link/ Boards, Threads diff --git a/gallery_dl/extractor/lynxchan.py b/gallery_dl/extractor/lynxchan.py index 0edd5c12..85b3fefd 100644 --- a/gallery_dl/extractor/lynxchan.py +++ b/gallery_dl/extractor/lynxchan.py @@ -18,8 +18,8 @@ class LynxchanExtractor(BaseExtractor): BASE_PATTERN = LynxchanExtractor.update({ "bbw-chan": { - "root": "https://bbw-chan.nl", - "pattern": r"bbw-chan\.nl", + "root": "https://bbw-chan.link", + "pattern": r"bbw-chan\.(?:link|nl)", }, "kohlchan": { "root": "https://kohlchan.net", @@ -40,7 +40,7 @@ class LynxchanThreadExtractor(LynxchanExtractor): filename_fmt = "{postId}{num:?-//} {filename}.{extension}" archive_fmt = "{boardUri}_{postId}_{num}" pattern = BASE_PATTERN + r"/([^/?#]+)/res/(\d+)" - example = "https://bbw-chan.nl/a/res/12345.html" + example = "https://endchan.org/a/res/12345.html" def __init__(self, match): LynxchanExtractor.__init__(self, match) @@ -71,7 +71,7 @@ class LynxchanBoardExtractor(LynxchanExtractor): """Extractor for LynxChan boards""" subcategory = "board" pattern = BASE_PATTERN + r"/([^/?#]+)(?:/index|/catalog|/\d+|/?$)" - example = "https://bbw-chan.nl/a/" + example = "https://endchan.org/a/" def __init__(self, match): LynxchanExtractor.__init__(self, match) diff --git a/test/results/bbw-chan.py b/test/results/bbw-chan.py index 74913ff9..1d79a431 100644 --- a/test/results/bbw-chan.py +++ b/test/results/bbw-chan.py @@ -9,10 +9,10 @@ from gallery_dl.extractor import lynxchan __tests__ = ( { - "#url" : "https://bbw-chan.nl/bbwdraw/res/499.html", + "#url" : "https://bbw-chan.link/bbwdraw/res/499.html", "#category": ("lynxchan", "bbw-chan", "thread"), "#class" : lynxchan.LynxchanThreadExtractor, - "#pattern" : r"https://bbw-chan\.nl/\.media/[0-9a-f]{64}(\.\w+)?$", + "#pattern" : r"https://bbw-chan\.link/\.media/[0-9a-f]{64}(\.\w+)?$", "#count" : ">= 352", }, @@ -23,7 +23,7 @@ __tests__ = ( }, { - "#url" : "https://bbw-chan.nl/bbwdraw/", + "#url" : "https://bbw-chan.link/bbwdraw/", "#category": ("lynxchan", "bbw-chan", "board"), "#class" : lynxchan.LynxchanBoardExtractor, "#pattern" : lynxchan.LynxchanThreadExtractor.pattern,