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,