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