[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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Bbw-chan</td>
|
<td>Bbw-chan</td>
|
||||||
<td>https://bbw-chan.nl/</td>
|
<td>https://bbw-chan.link/</td>
|
||||||
<td>Boards, Threads</td>
|
<td>Boards, Threads</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ class LynxchanExtractor(BaseExtractor):
|
|||||||
|
|
||||||
BASE_PATTERN = LynxchanExtractor.update({
|
BASE_PATTERN = LynxchanExtractor.update({
|
||||||
"bbw-chan": {
|
"bbw-chan": {
|
||||||
"root": "https://bbw-chan.nl",
|
"root": "https://bbw-chan.link",
|
||||||
"pattern": r"bbw-chan\.nl",
|
"pattern": r"bbw-chan\.(?:link|nl)",
|
||||||
},
|
},
|
||||||
"kohlchan": {
|
"kohlchan": {
|
||||||
"root": "https://kohlchan.net",
|
"root": "https://kohlchan.net",
|
||||||
@@ -40,7 +40,7 @@ class LynxchanThreadExtractor(LynxchanExtractor):
|
|||||||
filename_fmt = "{postId}{num:?-//} {filename}.{extension}"
|
filename_fmt = "{postId}{num:?-//} {filename}.{extension}"
|
||||||
archive_fmt = "{boardUri}_{postId}_{num}"
|
archive_fmt = "{boardUri}_{postId}_{num}"
|
||||||
pattern = BASE_PATTERN + r"/([^/?#]+)/res/(\d+)"
|
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):
|
def __init__(self, match):
|
||||||
LynxchanExtractor.__init__(self, match)
|
LynxchanExtractor.__init__(self, match)
|
||||||
@@ -71,7 +71,7 @@ class LynxchanBoardExtractor(LynxchanExtractor):
|
|||||||
"""Extractor for LynxChan boards"""
|
"""Extractor for LynxChan boards"""
|
||||||
subcategory = "board"
|
subcategory = "board"
|
||||||
pattern = BASE_PATTERN + r"/([^/?#]+)(?:/index|/catalog|/\d+|/?$)"
|
pattern = BASE_PATTERN + r"/([^/?#]+)(?:/index|/catalog|/\d+|/?$)"
|
||||||
example = "https://bbw-chan.nl/a/"
|
example = "https://endchan.org/a/"
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
LynxchanExtractor.__init__(self, match)
|
LynxchanExtractor.__init__(self, match)
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ from gallery_dl.extractor import lynxchan
|
|||||||
|
|
||||||
__tests__ = (
|
__tests__ = (
|
||||||
{
|
{
|
||||||
"#url" : "https://bbw-chan.nl/bbwdraw/res/499.html",
|
"#url" : "https://bbw-chan.link/bbwdraw/res/499.html",
|
||||||
"#category": ("lynxchan", "bbw-chan", "thread"),
|
"#category": ("lynxchan", "bbw-chan", "thread"),
|
||||||
"#class" : lynxchan.LynxchanThreadExtractor,
|
"#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",
|
"#count" : ">= 352",
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ __tests__ = (
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"#url" : "https://bbw-chan.nl/bbwdraw/",
|
"#url" : "https://bbw-chan.link/bbwdraw/",
|
||||||
"#category": ("lynxchan", "bbw-chan", "board"),
|
"#category": ("lynxchan", "bbw-chan", "board"),
|
||||||
"#class" : lynxchan.LynxchanBoardExtractor,
|
"#class" : lynxchan.LynxchanBoardExtractor,
|
||||||
"#pattern" : lynxchan.LynxchanThreadExtractor.pattern,
|
"#pattern" : lynxchan.LynxchanThreadExtractor.pattern,
|
||||||
|
|||||||
Reference in New Issue
Block a user