diff options
| author | 2025-12-20 05:49:04 -0500 | |
|---|---|---|
| committer | 2025-12-20 05:49:04 -0500 | |
| commit | a24ec1647aeac35a63b744ea856011ad6e06be3b (patch) | |
| tree | ae94416de786aeddd05d99559098f7f16bb103a6 /gallery_dl/extractor/lensdump.py | |
| parent | 33f8a8a37a9cba738ef25fb99955f0730da9eb48 (diff) | |
New upstream version 1.31.1.upstream/1.31.1
Diffstat (limited to 'gallery_dl/extractor/lensdump.py')
| -rw-r--r-- | gallery_dl/extractor/lensdump.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gallery_dl/extractor/lensdump.py b/gallery_dl/extractor/lensdump.py index b0198d5..a7b1318 100644 --- a/gallery_dl/extractor/lensdump.py +++ b/gallery_dl/extractor/lensdump.py @@ -31,7 +31,7 @@ class LensdumpBase(): class LensdumpAlbumExtractor(LensdumpBase, GalleryExtractor): subcategory = "album" - pattern = BASE_PATTERN + r"/a/(\w+)(?:/?\?([^#]+))?" + pattern = rf"{BASE_PATTERN}/a/(\w+)(?:/?\?([^#]+))?" example = "https://lensdump.com/a/ID" def __init__(self, match): @@ -76,7 +76,7 @@ class LensdumpAlbumExtractor(LensdumpBase, GalleryExtractor): class LensdumpAlbumsExtractor(LensdumpBase, Extractor): """Extractor for album list from lensdump.com""" subcategory = "albums" - pattern = BASE_PATTERN + r"/(?![ai]/)([^/?#]+)(?:/?\?([^#]+))?" + pattern = rf"{BASE_PATTERN}/(?![ai]/)([^/?#]+)(?:/?\?([^#]+))?" example = "https://lensdump.com/USER" def items(self): @@ -119,10 +119,9 @@ class LensdumpImageExtractor(LensdumpBase, Extractor): 'property="image:width" content="', '"')), "height": text.parse_int(extr( 'property="image:height" content="', '"')), - "date" : text.parse_datetime(extr( - '<span title="', '"'), "%Y-%m-%d %H:%M:%S"), + "date" : self.parse_datetime_iso(extr('<span title="', '"')), } text.nameext_from_url(data["url"], data) - yield Message.Directory, data + yield Message.Directory, "", data yield Message.Url, data["url"], data |
