diff options
| author | 2025-05-05 01:18:58 -0400 | |
|---|---|---|
| committer | 2025-05-05 01:18:58 -0400 | |
| commit | c679cd7a13bdbf6896e53d68fe2093910bc6625a (patch) | |
| tree | 6047abcc55283d7e631b7a73039865417a303428 /gallery_dl/extractor/scrolller.py | |
| parent | 4a18b5837c1dd82f5964afcfc3fecc53cd97e79c (diff) | |
New upstream version 1.29.6.upstream/1.29.6
Diffstat (limited to 'gallery_dl/extractor/scrolller.py')
| -rw-r--r-- | gallery_dl/extractor/scrolller.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gallery_dl/extractor/scrolller.py b/gallery_dl/extractor/scrolller.py index f97fa14..7bfc550 100644 --- a/gallery_dl/extractor/scrolller.py +++ b/gallery_dl/extractor/scrolller.py @@ -56,7 +56,12 @@ class ScrolllerExtractor(Extractor): files = [] for num, media in enumerate(album, 1): - src = max(media["mediaSources"], key=self._sort_key) + sources = media.get("mediaSources") + if not sources: + self.log.warning("%s/%s: Missing media file", + post.get("id"), num) + continue + src = max(sources, key=self._sort_key) src["num"] = num files.append(src) return files |
