[rule34] recognize URLs with 'www' subdomain (#4984)

This commit is contained in:
Mike Fährmann
2023-12-30 16:07:56 +01:00
parent 9f5051e4ed
commit 085411f3f1
2 changed files with 8 additions and 1 deletions

View File

@@ -168,7 +168,7 @@ INSTANCES = {
}, },
"rule34": { "rule34": {
"root": "https://rule34.xxx", "root": "https://rule34.xxx",
"pattern": r"rule34\.xxx", "pattern": r"(?:www\.)?rule34\.xxx",
"api_root": "https://api.rule34.xxx", "api_root": "https://api.rule34.xxx",
}, },
"safebooru": { "safebooru": {

View File

@@ -34,6 +34,13 @@ __tests__ = (
"#count" : 3, "#count" : 3,
}, },
{
"#url" : "https://www.rule34.xxx/index.php?page=post&s=view&id=863",
"#comment" : "www subdomain",
"#category": ("gelbooru_v02", "rule34", "post"),
"#class" : gelbooru_v02.GelbooruV02PostExtractor,
},
{ {
"#url" : "https://rule34.xxx/index.php?page=post&s=view&id=863", "#url" : "https://rule34.xxx/index.php?page=post&s=view&id=863",
"#category": ("gelbooru_v02", "rule34", "post"), "#category": ("gelbooru_v02", "rule34", "post"),