Fix IndexError when Deezer track has no media available (#3038)
authorDionysis Fortis <sfortis@gmail.com>
Wed, 28 Jan 2026 08:11:39 +0000 (10:11 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Jan 2026 08:11:39 +0000 (09:11 +0100)
commit1feb9fec8b057a82e19263e40c36cfd08c620d24
tree69c445e6bd5ace2ae210e00f58a05d87c597887e
parentaccd29007db478422f4b12f0a47d1c0eb07d7d6e
Fix IndexError when Deezer track has no media available (#3038)

Raise MediaNotFoundError instead of crashing with IndexError when the
Deezer API returns an empty media list. This allows the player queue
to gracefully skip unavailable tracks instead of stopping playback.

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