From 55a2633196011f65b391df35c9146cc96fd579b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 20 Aug 2025 11:38:29 +0200 Subject: [PATCH] [vichan] support 'guro.cx' (#8080) --- docs/supportedsites.md | 6 ++++++ gallery_dl/extractor/vichan.py | 4 ++++ test/results/gurochan.py | 27 +++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 test/results/gurochan.py diff --git a/docs/supportedsites.md b/docs/supportedsites.md index 9e37f407..36762e68 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -1627,6 +1627,12 @@ Consider all listed sites to potentially be NSFW. Boards, Threads + + Gurochan + https://boards.guro.cx/ + Boards, Threads + + Wikimedia Instances diff --git a/gallery_dl/extractor/vichan.py b/gallery_dl/extractor/vichan.py index f99b5dea..cbb44ee6 100644 --- a/gallery_dl/extractor/vichan.py +++ b/gallery_dl/extractor/vichan.py @@ -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", + }, }) diff --git a/test/results/gurochan.py b/test/results/gurochan.py new file mode 100644 index 00000000..76a0d717 --- /dev/null +++ b/test/results/gurochan.py @@ -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), +}, + +)