[chevereto] support URLs with 'www' subdomain (#8149)

https://github.com/mikf/gallery-dl/issues/8149#issuecomment-3336770171
This commit is contained in:
Mike Fährmann
2025-09-26 08:19:35 +02:00
parent 2f532bb699
commit abf56e4c13
4 changed files with 21 additions and 3 deletions

View File

@@ -40,15 +40,15 @@ class CheveretoExtractor(BaseExtractor):
BASE_PATTERN = CheveretoExtractor.update({
"jpgfish": {
"root": "https://jpg6.su",
"pattern": r"jpe?g\d?\.(?:su|pet|fish(?:ing)?|church)",
"pattern": r"(?:www\.)?jpe?g\d?\.(?:su|pet|fish(?:ing)?|church)",
},
"imagepond": {
"root": "https://imagepond.net",
"pattern": r"imagepond\.net",
"pattern": r"(?:www\.)?imagepond\.net",
},
"imglike": {
"root": "https://imglike.com",
"pattern": r"imglike\.com",
"pattern": r"(?:www\.)?imglike\.com",
},
})

View File

@@ -24,6 +24,12 @@ __tests__ = (
"user" : "dariusbbb24",
},
{
"#url" : "https://www.imagepond.net/image/IMG-20250217-160622.TJNphg",
"#category": ("chevereto", "imagepond", "image"),
"#class" : chevereto.CheveretoImageExtractor,
},
{
"#url" : "https://imagepond.net/video/1000423939.zb8Fxy",
"#category": ("chevereto", "imagepond", "video"),

View File

@@ -23,6 +23,12 @@ __tests__ = (
"user" : "albertthomas9",
},
{
"#url" : "https://www.imglike.com/image/EMT-Skills-Verification-by-EMSA.Lx6dT",
"#category": ("chevereto", "imglike", "image"),
"#class" : chevereto.CheveretoImageExtractor,
},
{
"#url" : "https://imglike.com/albertthomas9",
"#category": ("chevereto", "imglike", "user"),

View File

@@ -70,6 +70,12 @@ __tests__ = (
"#class" : chevereto.CheveretoImageExtractor,
},
{
"#url" : "https://www.jpg6.su/img/funnymeme.LecXGS",
"#category": ("chevereto", "jpgfish", "image"),
"#class" : chevereto.CheveretoImageExtractor,
},
{
"#url" : "https://jpg1.su/album/CDilP/?sort=date_desc&page=1",
"#category": ("chevereto", "jpgfish", "album"),