From 8d90709fa23874523e107928f21f2786f24d10df Mon Sep 17 00:00:00 2001 From: Silverarmor <23619946+Silverarmor@users.noreply.github.com> Date: Thu, 21 Nov 2024 19:08:00 +1300 Subject: [PATCH] syntax: if statement 1 line --- spotdl/utils/metadata.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"]: