Fix bit depth and sampling rate for Tidal

This commit is contained in:
nathom 2021-04-16 12:56:10 -07:00
parent 55294bc971
commit 8bfa7bc10d

View file

@ -171,6 +171,8 @@ class TrackMetadata:
)
self.streamable = resp.get("allowStreaming", False)
self.quality = TIDAL_Q_MAP[resp["audioQuality"]]
self.bit_depth = 24 if self.quality == 3 else 16
self.sampling_rate = 44100
elif self.__source == "deezer":
self.album = resp.get("title")