[rule34xyz] support URLs with 'www' subdomain (#8875)
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user