Add sample rate and bit depth info to Tidal provider for the standard HiFi option...
authorJozef Kruszynski <60214390+jozefKruszynski@users.noreply.github.com>
Wed, 19 Apr 2023 09:31:04 +0000 (11:31 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Apr 2023 09:31:04 +0000 (11:31 +0200)
Add sample rate and bit depthfor the standard HiFi option that we're currently defaulting to

Co-authored-by: jkruszynski <jozef@krush.at>
music_assistant/server/providers/tidal/__init__.py
music_assistant/server/providers/tidal/helpers.py

index 5fbf459cddebefbe6a146c4979f1272e51dc64d3..76710a5590b144bfc47209d8b8e589e7317b44e0 100644 (file)
@@ -324,6 +324,8 @@ class TidalProvider(MusicProvider):
             item_id=track.id,
             provider=self.instance_id,
             content_type=ContentType.FLAC,
+            sample_rate=44100,
+            bit_depth=16,
             duration=track.duration,
             direct=url,
         )
index 57fb0d045bee22a1c7f67d2f21a12b382e82b824..f4157e27ee9b392ff2920b2f66bd7189109b7550 100644 (file)
@@ -167,7 +167,8 @@ def parse_track(tidal_provider, track_obj: TidalTrack) -> Track:
             provider_domain=tidal_provider.domain,
             provider_instance=tidal_provider.instance_id,
             content_type=ContentType.FLAC,
-            bit_rate=1411,
+            sample_rate=44100,
+            bit_depth=16,
             url=f"http://www.tidal.com/tracks/{track_id}",
             available=available,
         )