diff --git a/spotdl/utils/metadata.py b/spotdl/utils/metadata.py index 9f9923ca9..15cd59475 100644 --- a/spotdl/utils/metadata.py +++ b/spotdl/utils/metadata.py @@ -445,7 +445,8 @@ def get_file_metadata(path: Path, id3_separator: str = "/") -> Optional[Dict[str continue if path.suffix == ".flac": - song_meta["album_art"] = audio_file.pictures[0].data + if len(audio_file.pictures) > 0: + song_meta["album_art"] = audio_file.pictures[0].data continue if path.suffix in [".ogg", ".opus"]: