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 []