Fix: Provide a proper track number for Deezer tracks if available (#1900)
authorawhiemstra <ahiemstra@heimr.nl>
Tue, 21 Jan 2025 19:04:38 +0000 (20:04 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Jan 2025 19:04:38 +0000 (20:04 +0100)
commitbbe219d99ef8b06c22dd3f6277526674b66ef7d5
tree84548ddfcc183e18c955ce4de4af9d2d0ed8f597
parent4a34aa72912d2984103bd176fe968f454c5a4b14
Fix: Provide a proper track number for Deezer tracks if available (#1900)

Use the track_position attribute if it's available as the track number.
This ensures we get the right track number for things like multi-disc
albums. Without this, tracks seem to follow the order in which they have
been added, which does not match the actual track numbering.
music_assistant/providers/deezer/__init__.py