1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[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
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 8 additions and 1 deletions

View File

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

View File

@ -34,6 +34,13 @@ __tests__ = (
"#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",
"#category": ("gelbooru_v02", "rule34", "post"),