fix(plex): preserve hydrated quality during re-sync, add hydration query

- Save existing quality data before DELETE in plex_cache_save_tracks,
  restore hydrated container/sampling_rate_hz/bit_depth after re-insert
  so bulk sync no longer overwrites per-track quality from hydration
- Add plex_cache_get_tracks_needing_hydration command returning
  rating_keys where sampling_rate_hz or bit_depth is NULL (limit param)
- Add likely_single_file_album field to PlexCachedAlbum struct, set true
  when track_count == 1 and total_duration_secs > 600
This commit is contained in:
vicrodh committed 2026-02-09 11:40:48 -06:00
1 parent fdb6c520cb
commit 6e7f5940c1
2 files changed
+81 -21

No files matched your search

+1
View File
@@ -707,6 +707,7 @@ pub fn run() {
plex::plex_cache_get_albums,
plex::plex_cache_get_album_tracks,
plex::plex_cache_search_tracks,
plex::plex_cache_get_tracks_needing_hydration,
plex::plex_cache_clear,
// AirPlay casting commands - DISABLED until RAOP implementation is complete
// See docs/AIRPLAY_IMPLEMENTATION_STATUS.md for details