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/imagechest.py | |
| parent | 33f8a8a37a9cba738ef25fb99955f0730da9eb48 (diff) | |
New upstream version 1.31.1.upstream/1.31.1
Diffstat (limited to 'gallery_dl/extractor/imagechest.py')
| -rw-r--r-- | gallery_dl/extractor/imagechest.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gallery_dl/extractor/imagechest.py b/gallery_dl/extractor/imagechest.py index 464e489..074b4ae 100644 --- a/gallery_dl/extractor/imagechest.py +++ b/gallery_dl/extractor/imagechest.py @@ -19,7 +19,7 @@ class ImagechestGalleryExtractor(GalleryExtractor): """Extractor for image galleries from imgchest.com""" category = "imagechest" root = "https://imgchest.com" - pattern = BASE_PATTERN + r"/p/([A-Za-z0-9]{11})" + pattern = rf"{BASE_PATTERN}/p/([A-Za-z0-9]{{11}})" example = "https://imgchest.com/p/abcdefghijk" def __init__(self, match): @@ -53,11 +53,9 @@ class ImagechestGalleryExtractor(GalleryExtractor): def _metadata_api(self, page): post = self.api.post(self.gallery_id) - post["date"] = text.parse_datetime( - post["created"], "%Y-%m-%dT%H:%M:%S.%fZ") + post["date"] = self.parse_datetime_iso(post["created"]) for img in post["images"]: - img["date"] = text.parse_datetime( - img["created"], "%Y-%m-%dT%H:%M:%S.%fZ") + img["date"] = self.parse_datetime_iso(img["created"]) post["gallery_id"] = self.gallery_id post.pop("image_count", None) @@ -80,7 +78,7 @@ class ImagechestUserExtractor(Extractor): category = "imagechest" subcategory = "user" root = "https://imgchest.com" - pattern = BASE_PATTERN + r"/u/([^/?#]+)" + pattern = rf"{BASE_PATTERN}/u/([^/?#]+)" example = "https://imgchest.com/u/USER" def items(self): |
