[rule34xyz] support URLs with 'www' subdomain (#8875)

This commit is contained in:
Mike Fährmann
2026-01-13 12:06:45 +01:00
parent 6502ce034e
commit c4040bb45b
2 changed files with 8 additions and 2 deletions

View File

@@ -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):

View File

@@ -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,