merge #3463: [lynxchan] support 'bbw-chan.nl'
This commit is contained in:
@@ -1055,6 +1055,12 @@ Consider all sites to be NSFW unless otherwise known.
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan="4"><strong>LynxChan Imageboards</strong></td>
|
<td colspan="4"><strong>LynxChan Imageboards</strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Bbw-chan</td>
|
||||||
|
<td>https://bbw-chan.nl/</td>
|
||||||
|
<td>Boards, Threads</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Kohlchan</td>
|
<td>Kohlchan</td>
|
||||||
<td>https://kohlchan.net/</td>
|
<td>https://kohlchan.net/</td>
|
||||||
|
|||||||
@@ -17,9 +17,13 @@ class LynxchanExtractor(BaseExtractor):
|
|||||||
|
|
||||||
|
|
||||||
BASE_PATTERN = LynxchanExtractor.update({
|
BASE_PATTERN = LynxchanExtractor.update({
|
||||||
|
"bbw-chan": {
|
||||||
|
"root": "https://bbw-chan.nl",
|
||||||
|
"pattern": r"bbw-chan\.nl",
|
||||||
|
},
|
||||||
"kohlchan": {
|
"kohlchan": {
|
||||||
"root": "https://kohlchan.net",
|
"root": "https://kohlchan.net",
|
||||||
"pattern": r"kohlchan\.net"
|
"pattern": r"kohlchan\.net",
|
||||||
},
|
},
|
||||||
"endchan": {
|
"endchan": {
|
||||||
"root": None,
|
"root": None,
|
||||||
@@ -37,6 +41,11 @@ class LynxchanThreadExtractor(LynxchanExtractor):
|
|||||||
archive_fmt = "{boardUri}_{postId}_{num}"
|
archive_fmt = "{boardUri}_{postId}_{num}"
|
||||||
pattern = BASE_PATTERN + r"/([^/?#]+)/res/(\d+)"
|
pattern = BASE_PATTERN + r"/([^/?#]+)/res/(\d+)"
|
||||||
test = (
|
test = (
|
||||||
|
("https://bbw-chan.nl/bbwdraw/res/499.html", {
|
||||||
|
"pattern": r"https://bbw-chan\.nl/\.media/[0-9a-f]{64}(\.\w+)?$",
|
||||||
|
"count": ">= 352",
|
||||||
|
}),
|
||||||
|
("https://bbw-chan.nl/bbwdraw/res/489.html"),
|
||||||
("https://kohlchan.net/a/res/4594.html", {
|
("https://kohlchan.net/a/res/4594.html", {
|
||||||
"pattern": r"https://kohlchan\.net/\.media/[0-9a-f]{64}(\.\w+)?$",
|
"pattern": r"https://kohlchan\.net/\.media/[0-9a-f]{64}(\.\w+)?$",
|
||||||
"count": ">= 80",
|
"count": ">= 80",
|
||||||
@@ -78,6 +87,11 @@ class LynxchanBoardExtractor(LynxchanExtractor):
|
|||||||
subcategory = "board"
|
subcategory = "board"
|
||||||
pattern = BASE_PATTERN + r"/([^/?#]+)(?:/index|/catalog|/\d+|/?$)"
|
pattern = BASE_PATTERN + r"/([^/?#]+)(?:/index|/catalog|/\d+|/?$)"
|
||||||
test = (
|
test = (
|
||||||
|
("https://bbw-chan.nl/bbwdraw/", {
|
||||||
|
"pattern": LynxchanThreadExtractor.pattern,
|
||||||
|
"count": ">= 148",
|
||||||
|
}),
|
||||||
|
("https://bbw-chan.nl/bbwdraw/2.html"),
|
||||||
("https://kohlchan.net/a/", {
|
("https://kohlchan.net/a/", {
|
||||||
"pattern": LynxchanThreadExtractor.pattern,
|
"pattern": LynxchanThreadExtractor.pattern,
|
||||||
"count": ">= 100",
|
"count": ">= 100",
|
||||||
|
|||||||
Reference in New Issue
Block a user