Skip to content

Commit

Permalink
make cover save as file
Browse files Browse the repository at this point in the history
  • Loading branch information
NiciTheNici committed Oct 31, 2023
1 parent 899e75c commit ae1ecbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/onthespot/utils/spotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def set_music_thumbnail(filename, image_url):
tags = music_tag.load_file(filename)
tags['artwork'] = buf.read()
tags.save()
cover_path = Path(filename).parent.joinpath('cover.png')
img.save(cover_path)


def search_by_term(session,
Expand Down

0 comments on commit ae1ecbe

Please sign in to comment.