Skip to content

Commit

Permalink
Fix flac scanning when no album art present (#2238)
Browse files Browse the repository at this point in the history
* Fix flac scanning when no picture metadata present

---------

Co-authored-by: Silverarmor <[email protected]>
  • Loading branch information
Silverarmor authored Nov 21, 2024
2 parents 34f867c + 8d90709 commit c5449f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotdl/utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def get_file_metadata(path: Path, id3_separator: str = "/") -> Optional[Dict[str

continue

if path.suffix == ".flac":
if path.suffix == ".flac" and len(audio_file.pictures) > 0:
song_meta["album_art"] = audio_file.pictures[0].data
continue

Expand Down

0 comments on commit c5449f3

Please sign in to comment.