Subsonic: Set Track.disc_number to 0 for now (#1304)
authorEric Munson <eric@munsonfam.org>
Tue, 14 May 2024 16:46:10 +0000 (12:46 -0400)
committerGitHub <noreply@github.com>
Tue, 14 May 2024 16:46:10 +0000 (18:46 +0200)
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 <eric@munsonfam.org>
music_assistant/server/providers/opensubsonic/sonic_provider.py

index eff3b731d8248eabadb18870f11a5982a487c34a..a03a785de6632a2e4109c9b9e9099de88d802855 100644 (file)
@@ -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,