[vichan] support 'guro.cx' (#8080)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
27
test/results/gurochan.py
Normal 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),
|
||||
},
|
||||
|
||||
)
|
||||
Reference in New Issue
Block a user