Fix: Deezer tracks that have been replaced with a newer version fail to play (#1892)
authorawhiemstra <ahiemstra@heimr.nl>
Tue, 21 Jan 2025 11:35:27 +0000 (12:35 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Jan 2025 11:35:27 +0000 (12:35 +0100)
commit933399fc1344b06e24ba35d116557b699adc2a46
treed7f46db581cf335e066bf732e75bf49ee4dc4c8f
parentbab2a9b4f48d31064a4cf86c2c65f6d37af395c7
Fix: Deezer tracks that have been replaced with a newer version fail to play (#1892)

Some tracks have been replaced by a newer version. When this happens,
the old track information stays available but it will fail to play
because the stream has become invalid. Fortunately, the playback API
provides the track replacement in a "FALLBACK" entry. So when we
encounter a track that has a "FALLBACK" entry, use the information from
that entry rather than the main track entry for the stream.

Fixes music-assistant/support#3466
music_assistant/providers/deezer/__init__.py
music_assistant/providers/deezer/gw_client.py