From: Eric Munson Date: Tue, 14 May 2024 16:46:10 +0000 (-0400) Subject: Subsonic: Set Track.disc_number to 0 for now (#1304) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=e4001f7ca768ca0b4a3cbba14e66d509603664c8;p=music-assistant-server.git 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 --- 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,