Skip to content

Commit

Permalink
version 0.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bleuzen committed Dec 7, 2021
1 parent 47f646e commit eda66b1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions spotrec.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# - set fixed latency on pipewire (currently only done by ffmpeg while it is recording ("fragment_size" parameter), but should ideally be set before recording)

app_name = "SpotRec"
app_version = "0.15.0"
app_version = "0.15.1"

# Settings with Defaults
_debug_logging = False
Expand Down Expand Up @@ -271,10 +271,10 @@ def get_track(self):
filename_pattern = _filename_pattern

ret = str(filename_pattern.format(
artist=self.metadata_artist.replace("/","_"),
album=self.metadata_album.replace("/","_"),
artist=self.metadata_artist.replace("/", "_"),
album=self.metadata_album.replace("/", "_"),
trackNumber=self.metadata_trackNumber,
title=self.metadata_title.replace("/","_")
title=self.metadata_title.replace("/", "_")
))

if _underscored_filenames:
Expand Down Expand Up @@ -525,9 +525,11 @@ def __init__(self, parent, fullfilepath):
self.fullfilepath = fullfilepath

def run(self):
self.parent.add_cover_art(self.fullfilepath)
self.parent.add_cover_art(
self.fullfilepath)

add_cover_art_thread = AddCoverArtThread(self, new_file)
add_cover_art_thread = AddCoverArtThread(
self, new_file)
add_cover_art_thread.start()
else:
log.warning(
Expand Down Expand Up @@ -557,7 +559,8 @@ def add_cover_art(self, fullfilepath):
return
# save the image locally -> could use a temp file here
# but might add option to keep image later
cover_file = fullfilepath.rsplit('.flac', 1)[0] # remove the extension
cover_file = fullfilepath.rsplit(
'.flac', 1)[0] # remove the extension
log.debug(f'Saving cover art to {cover_file} + image_ext')
temp_file = cover_file + '_withArtwork.' + 'flac'
if self.cover_url.startswith('file://'):
Expand Down

0 comments on commit eda66b1

Please sign in to comment.