[lynxchan] update 'bbw-chan' domain (#4970)
This commit is contained in:
@@ -1193,7 +1193,7 @@ Consider all listed sites to potentially be NSFW.
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bbw-chan</td>
|
||||
<td>https://bbw-chan.nl/</td>
|
||||
<td>https://bbw-chan.link/</td>
|
||||
<td>Boards, Threads</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user