Follow-up hardening to #789. The selection was keyed purely by folder name, so renaming a music folder in Navidrome silently reverted the scan to all libraries. Now persist the folder id (stable across renames) as the primary key alongside the name (kept for display + back-compat), and restore by id first with a name fallback. Self-heals on reconnect: pre-id installs and drifted/renamed names get the id + fresh name written back, so the settings dropdown keeps highlighting the right folder. Tests: restore-by-id-after-rename (+ name heal), name-fallback self-heals id, no-drift writes nothing. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_conformance.py | ||
| test_engine.py | ||
| test_jellyfin_pinning.py | ||
| test_navidrome_pinning.py | ||
| test_plex_all_libraries.py | ||
| test_plex_non_english_section_name.py | ||
| test_plex_pinning.py | ||
| test_soulsync_pinning.py | ||