Skip to content

Commit

Permalink
[lynxchan] update 'bbw-chan' domain (mikf#4970)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Dec 25, 2023
1 parent 766316e commit 77d46e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/supportedsites.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 4 additions & 4 deletions gallery_dl/extractor/lynxchan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions test/results/bbw-chan.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

__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",
},

Expand All @@ -23,7 +23,7 @@
},

{
"#url" : "https://bbw-chan.nl/bbwdraw/",
"#url" : "https://bbw-chan.link/bbwdraw/",
"#category": ("lynxchan", "bbw-chan", "board"),
"#class" : lynxchan.LynxchanBoardExtractor,
"#pattern" : lynxchan.LynxchanThreadExtractor.pattern,
Expand Down

0 comments on commit 77d46e6

Please sign in to comment.