Skip to content

Commit

Permalink
syntax: if statement 1 line
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverarmor committed Nov 21, 2024
1 parent 0301d30 commit 8d90709
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spotdl/utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 8d90709

Please sign in to comment.