mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
[lensdump] support more direct link formats (#5293)
This commit is contained in:
parent
a01d334feb
commit
ac4e29f70a
@ -104,7 +104,7 @@ class LensdumpImageExtractor(LensdumpBase, Extractor):
|
||||
filename_fmt = "{category}_{id}{title:?_//}.{extension}"
|
||||
directory_fmt = ("{category}",)
|
||||
archive_fmt = "{id}"
|
||||
pattern = r"(?:https?://)?(?:lensdump\.com|\w\.l3n\.co)/i/(\w+)"
|
||||
pattern = r"(?:https?://)?(?:(?:i\d?\.)?lensdump\.com|\w\.l3n\.co)/i/(\w+)"
|
||||
example = "https://lensdump.com/i/ID"
|
||||
|
||||
def __init__(self, match):
|
||||
|
@ -61,4 +61,16 @@ __tests__ = (
|
||||
"width" : 620,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://i.lensdump.com/i/tyoAyM",
|
||||
"#category": ("", "lensdump", "image"),
|
||||
"#class" : lensdump.LensdumpImageExtractor,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://i3.lensdump.com/i/tyoAyM",
|
||||
"#category": ("", "lensdump", "image"),
|
||||
"#class" : lensdump.LensdumpImageExtractor,
|
||||
},
|
||||
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user