[lensdump] recognize direct image links (#5293

This commit is contained in:
Mike Fährmann
2024-03-06 22:56:57 +01:00
parent 6d9e3c0eb1
commit 790c0ffb8d
2 changed files with 18 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ class LensdumpImageExtractor(LensdumpBase, Extractor):
filename_fmt = "{category}_{id}{title:?_//}.{extension}"
directory_fmt = ("{category}",)
archive_fmt = "{id}"
pattern = BASE_PATTERN + r"/i/(\w+)"
pattern = r"(?:https?://)?(?:lensdump\.com|\w\.l3n\.co)/i/(\w+)"
example = "https://lensdump.com/i/ID"
def __init__(self, match):