Skip to content

Commit

Permalink
added note regarding sync duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat committed Sep 6, 2024
1 parent 4f813c4 commit b72bd21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spotdl/console/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ def sync(
if path != new_path:
to_rename.append((path, new_path))

# TODO: Downloading duplicate songs in the same playlist
# will trigger a re-download of the song. To fix this we have to copy the song
# to the new location without removing the old one.
for old_path, new_path in to_rename:
if old_path.exists():
logger.info("Renaming %s to %s", f"'{old_path}'", f"'{new_path}'")
Expand Down

0 comments on commit b72bd21

Please sign in to comment.