aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/imagechest.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/imagechest.py')
-rw-r--r--gallery_dl/extractor/imagechest.py10
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):