From c4040bb45bd404a5be1150c81f89561da3490b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 13 Jan 2026 12:06:45 +0100 Subject: [PATCH] [rule34xyz] support URLs with 'www' subdomain (#8875) --- gallery_dl/extractor/rule34xyz.py | 4 ++-- test/results/rule34xyz.py | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/rule34xyz.py b/gallery_dl/extractor/rule34xyz.py index b395f03f..8ff6d8f5 100644 --- a/gallery_dl/extractor/rule34xyz.py +++ b/gallery_dl/extractor/rule34xyz.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2024-2025 Mike Fährmann +# Copyright 2024-2026 Mike Fährmann # # 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 @@ -13,7 +13,7 @@ from .. import text, exception from ..cache import cache import collections -BASE_PATTERN = r"(?:https?://)?rule34\.xyz" +BASE_PATTERN = r"(?:https?://)?(?:www\.)?rule34\.xyz" class Rule34xyzExtractor(BooruExtractor): diff --git a/test/results/rule34xyz.py b/test/results/rule34xyz.py index 89d1cd94..5dd0d492 100644 --- a/test/results/rule34xyz.py +++ b/test/results/rule34xyz.py @@ -18,6 +18,12 @@ __tests__ = ( "search_tags": "sfw", }, +{ + "#url" : "https://www.rule34.xyz/sfw", + "#comment" : "URL with 'www' subdomain (#8875)", + "#class" : rule34xyz.Rule34xyzTagExtractor, +}, + { "#url" : "https://rule34.xyz/playlists/view/119", "#class": rule34xyz.Rule34xyzPlaylistExtractor,