Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quality "HIGH" for HiRes-FLAC from August 2023? #172

Closed
unwan878 opened this issue Aug 3, 2023 · 2 comments · Fixed by #174
Closed

Quality "HIGH" for HiRes-FLAC from August 2023? #172

unwan878 opened this issue Aug 3, 2023 · 2 comments · Fixed by #174

Comments

@unwan878
Copy link

unwan878 commented Aug 3, 2023

TIDAL has announced to change from MQA to HiRes-FLAC starting in August 2023.
Would you please implement downloading HiRes-FLAC "HI_RES_LOSSLESS" files?

@tehkillerbee
Copy link
Collaborator

Yep, I am currently working on adding support for this.

@tehkillerbee
Copy link
Collaborator

tehkillerbee commented Aug 5, 2023

It turns out very little was needed to add support for HI_RES. I have added a couple of helper functions to allow setting the quality manually, otherwise it will use HIGH per default.

import tidalapi

session = tidalapi.Session()
# Will run until you visit the printed url and link your account
session.login_oauth_simple()
# Override the required playback quality, if necessary
session.set_audio_quality(Quality.lossless)
# session.set_audio_quality(Quality.master)

album = session.album(66236918)
tracks = album.tracks()
for track in tracks:
    print(track.name)
    for artist in track.artists:
        print(' by: ', artist.name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants