Skip to content

Commit

Permalink
Merge branch 'dev' into dependabot/pip/jinja2-3.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverarmor authored Jan 16, 2025
2 parents c5d2bdf + 46c26ba commit 20bca6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,3 @@ temp/
# VS Code
.vscode
*.txt

# Output Folder
output/
6 changes: 5 additions & 1 deletion spotdl/utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ 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 audio_file.pictures:
song_meta["album_art"] = audio_file.pictures[0].data
else:
song_meta["album_art"] = None

continue

if path.suffix in [".ogg", ".opus"]:
Expand Down

0 comments on commit 20bca6b

Please sign in to comment.