[vichan] support 'guro.cx' (#8080)

This commit is contained in:
Mike Fährmann
2025-08-20 11:38:29 +02:00
parent d9d8172364
commit 55a2633196
3 changed files with 37 additions and 0 deletions

View File

@@ -1627,6 +1627,12 @@ Consider all listed sites to potentially be NSFW.
<td>Boards, Threads</td>
<td></td>
</tr>
<tr id="gurochan" title="gurochan">
<td>Gurochan</td>
<td>https://boards.guro.cx/</td>
<td>Boards, Threads</td>
<td></td>
</tr>
<tr id="wikimedia" title="wikimedia">
<td colspan="4"><strong>Wikimedia Instances</strong></td>

View File

@@ -26,6 +26,10 @@ BASE_PATTERN = VichanExtractor.update({
"root": None,
"pattern": r"smuglo(?:\.li|li\.net)",
},
"gurochan": {
"root": "https://boards.guro.cx",
"pattern": r"boards\.guro\.cx",
},
})

27
test/results/gurochan.py Normal file
View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import vichan
__tests__ = (
{
"#url" : "https://boards.guro.cx/art/res/7184.html#q7184",
"#category": ("vichan", "gurochan", "thread"),
"#class" : vichan.VichanThreadExtractor,
"#pattern" : r"https://boards\.guro\.cx/art/src/\d+\.\w+",
"#count" : range(50, 80),
},
{
"#url" : "https://boards.guro.cx/art/",
"#category": ("vichan", "gurochan", "board"),
"#class" : vichan.VichanBoardExtractor,
"#pattern" : vichan.VichanThreadExtractor.pattern,
"#count" : range(500, 800),
},
)