From e4001f7ca768ca0b4a3cbba14e66d509603664c8 Mon Sep 17 00:00:00 2001 From: Eric Munson Date: Tue, 14 May 2024 12:46:10 -0400 Subject: [PATCH] Subsonic: Set Track.disc_number to 0 for now (#1304) The standard for Open Subsonic is not complete for Songs so we don't know if this field will be supported. Once the standard is ready we can readress this. Signed-off-by: Eric B Munson --- .../server/providers/opensubsonic/sonic_provider.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/music_assistant/server/providers/opensubsonic/sonic_provider.py b/music_assistant/server/providers/opensubsonic/sonic_provider.py index eff3b731..a03a785d 100644 --- a/music_assistant/server/providers/opensubsonic/sonic_provider.py +++ b/music_assistant/server/providers/opensubsonic/sonic_provider.py @@ -350,6 +350,10 @@ class OpenSonicProvider(MusicProvider): name=sonic_song.title, album=mapping, duration=sonic_song.duration if sonic_song.duration is not None else 0, + # We are setting disc number to 0 because the standard for what is part of + # a Open Subsonic Song is not yet set and the implementations I have checked + # do not contain this field. We should revisit this when the spec is finished + disc_number=0, provider_mappings={ ProviderMapping( item_id=sonic_song.id, -- 2.34.1