From 917e873c630e6b38abf19757836d7fe514278371 Mon Sep 17 00:00:00 2001 From: Achim Date: Thu, 14 Nov 2024 16:54:59 +0100 Subject: [PATCH] fix imagechest extractor --- gallery_dl/extractor/imagechest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/imagechest.py b/gallery_dl/extractor/imagechest.py index 3ee91ba4..abd14900 100644 --- a/gallery_dl/extractor/imagechest.py +++ b/gallery_dl/extractor/imagechest.py @@ -73,10 +73,12 @@ class ImagechestGalleryExtractor(GalleryExtractor): return metadata def images(self, page): + page_data = self._retrieve_page_data(page) + try: return [ (file["link"], None) - for file in self._retrieve_page_data(page)["props"]["post"]["files"] + for file in page_data["props"]["post"]["files"] ] except Exception: return []