Skip to content

Favorites are not synced when songs are renamed, moved, or deleted #33

Description

@alhaymex

Description

Favorites are stored as a set of absolute file paths in favorites.songs. When a song's path changes, the favorite entry becomes orphaned and the song no longer appears in the Favorites screen.

Affected operations

  • Rename (Ctrl + e) — changes the file name and therefore the path.
  • Move (planned Ctrl + x / Ctrl + v) — changes the parent directory.
  • Delete (Ctrl + d) — removes the file entirely.

Expected behavior

  • When a song is renamed or moved, the old path in favorites.songs should be replaced with the new path.
  • When a song is deleted, its path should be removed from favorites.songs if present.
  • After any of these operations, favorites.save() should be called to persist the change.

Note

Favorites should be cleaned and relinked on library rescan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions