soulsync/tests/library
BoulderBadgeDad d4e80fdaa0 #915: redownload pulls full album_data from the primary source for iTunes/Deezer too
Second leak of the same class: redownload_start built full album_data (release_date/album_type/
total_tracks) only in the Spotify branch. The iTunes and Deezer branches set just track/disc number
and left album_data lean ({'name': ...}), so single-track redownloads on those sources dropped the
$year — same symptom as #915 in the add/download path.

Fix: both branches now fetch the album via get_album_for_source (cached, source-aware) and build
album_data through the shared _album_data_from_source helper, mirroring the Spotify branch. Falls
back to the lean default if the fetch returns nothing (no regression). get_album is cached on both
iTunes and Deezer, so no extra API cost.

Tests: _album_data_from_source (full build, image-url fallback, defaults). 694 library+downloads
tests green.
2026-06-23 19:21:50 -07:00
..
__init__.py
test_artist_image.py
test_direct_id_match.py
test_embedded_id_reconcile.py
test_expired_cleanup.py
test_file_tags.py
test_missing_track_import.py #917: 'I have this' reuses the album's existing folder year instead of dropping it 2026-06-23 16:18:00 -07:00
test_path_resolver.py
test_redownload_album_data.py #915: redownload pulls full album_data from the primary source for iTunes/Deezer too 2026-06-23 19:21:50 -07:00
test_residual_files.py
test_standalone_scan.py #904: guard standalone Deep Scan against relocating a desynced library 2026-06-22 17:53:49 -07:00