Skip to content

Commit

Permalink
format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat committed Sep 6, 2024
1 parent b72bd21 commit ae86fcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion spotdl/console/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ def sync(
lrc_file = old_path.with_suffix(".lrc")
new_lrc_file = new_path.with_suffix(".lrc")
if lrc_file.exists():
logger.debug("Renaming lrc %s to %s", f"'{lrc_file}'", f"'{new_lrc_file}'")
logger.debug(
"Renaming lrc %s to %s",
f"'{lrc_file}'",
f"'{new_lrc_file}'",
)
try:
lrc_file.rename(new_lrc_file)
except (PermissionError, OSError) as exc:
Expand Down
4 changes: 3 additions & 1 deletion spotdl/download/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ def search_and_download( # pylint: disable=R0911
logger.debug(
"Found duplicate songs for %s at %s",
song.display_name,
", ".join([f"'{str(dup_song_path)}'" for dup_song_path in dup_song_paths]),
", ".join(
[f"'{str(dup_song_path)}'" for dup_song_path in dup_song_paths]
),
)

# If the file already exists and we don't want to overwrite it,
Expand Down

0 comments on commit ae86fcc

Please sign in to comment.