Skip to content

Commit

Permalink
Fix flac scanning when no picture metadata present
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyballentine committed Nov 21, 2024
1 parent 34f867c commit 0301d30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spotdl/utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 0301d30

Please sign in to comment.