mirror of https://github.com/Nezreka/SoulSync.git
Sync: automated syncs honor the configured playlist sync mode instead of hardcoding 'replace' (#823)
carlosjfcasero: "append" sync mode still recreated the playlist (wiping image + description) on both the sync-page auto-sync and the Playlist Pipeline. Root cause: _run_sync_task defaulted sync_mode='replace', and every AUTOMATED caller omits the mode — auto_sync_playlist (mirrored auto-sync + pipeline), the iTunes-link sync, and Wing It. So those paths always replaced, ignoring the user's chosen mode entirely. (Manual sync + the per-source discovery path already passed a mode, which is why it only bit automated runs.) Fix: when no mode is passed, _run_sync_task resolves the user's configured global "Playlist sync mode" (normalize_sync_mode(None, playlist_sync.mode)) — the same thing _submit_sync_task already does — instead of hardcoding 'replace'. The global default is still 'replace', so users who never changed it are unaffected; only those who set Append/Reconcile get the corrected behavior. Tests: normalize_sync_mode(None,'append')→'append' (and 'replace' unchanged); auto_sync_playlist must not force a mode (no sync_mode kwarg / no 7th positional) so the resolution can happen. 896 sync/automation/discovery/playlist tests pass.pull/848/head
parent
a79816ad69
commit
6fa956d63a
Loading…
Reference in new issue