soulsync/tests/tools
Broque Thomas 9fb63ff86d fix(amazon): add set_engine/set_shutdown_check so _engine gets wired
AmazonDownloadClient was missing set_engine() and set_shutdown_check().
The download engine auto-wires plugins by calling set_engine(self) at
registration time if the method exists (engine.py:136). Without it,
_engine stayed None forever, causing every download() call to raise
RuntimeError("_engine is not set") — silently failing and marking all
tracks not found.

All other streaming clients (Deezer, Qobuz, Tidal, HiFi, SoundCloud)
expose set_engine(); Amazon now matches the pattern.

Tests added: set_engine wires _engine, set_shutdown_check wires callback,
set_engine unblocks download dispatch (the exact live failure mode).
2026-05-16 10:31:17 -07:00
..
__init__.py Amazon Music provider: metadata client + download source (T2Tunes) 2026-05-16 07:46:41 -07:00
test_amazon_client.py Amazon Music provider: metadata client + download source (T2Tunes) 2026-05-16 07:46:41 -07:00
test_amazon_download_client.py fix(amazon): add set_engine/set_shutdown_check so _engine gets wired 2026-05-16 10:31:17 -07:00