Set Tidal sampling rate to 48000 for MQA

This commit is contained in:
nathom 2021-04-08 12:23:32 -07:00
parent 33a1ce33c4
commit 4cf00a106e

View file

@ -782,7 +782,7 @@ class Album(Tracklist):
"streamable": resp.get("allowStreaming"),
"quality": TIDAL_Q_MAP[resp.get("audioQuality")],
"bit_depth": 24 if resp.get("audioQuality") == "HI_RES" else 16,
"sampling_rate": 44100, # always 44.1 kHz
"sampling_rate": 48000 if resp.get("audioQuality") == 'HI_RES' else 41000,
"tracktotal": resp.get("numberOfTracks"),
"disctotal": resp.get("numberOfVolumes"),
}