diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-04-21 15:58:31 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-04-21 15:58:31 +0200 |
| commit | f9862e0646032628923dc696afb0fe04884eddfb (patch) | |
| tree | 266a029363b050998eb2227d59cdde68f3db80f7 /tidal_dl_ng/helper/tidal.py | |
| parent | 1224e42689e27fb75b5a4a742ac37f66e1c6eb07 (diff) | |
| download | tidal-dl-ng-f9862e0646032628923dc696afb0fe04884eddfb.tar.gz | |
✨ PKCE / OAuth login will be chosen on the fly, depending on the desired audio quality of the track to speed up non `HIRES_LOSSLESS` downloads. Quality for tracks in download queue can be chosen individually. Fixes #73
Diffstat (limited to 'tidal_dl_ng/helper/tidal.py')
| -rw-r--r-- | tidal_dl_ng/helper/tidal.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tidal_dl_ng/helper/tidal.py b/tidal_dl_ng/helper/tidal.py index 052f721..dbc31aa 100644 --- a/tidal_dl_ng/helper/tidal.py +++ b/tidal_dl_ng/helper/tidal.py @@ -154,13 +154,13 @@ def instantiate_media( return media -def quality_audio_highest(media: Track | Album) -> str: - quality: str +def quality_audio_highest(media: Track | Album) -> Quality: + quality: Quality if MediaMetadataTags.hires_lossless in media.media_metadata_tags: quality = Quality.hi_res_lossless elif MediaMetadataTags.mqa in media.media_metadata_tags: - quality = f"{Quality.hi_res}" + quality = Quality.hi_res elif MediaMetadataTags.lossless in media.media_metadata_tags: quality = Quality.high_lossless else: |
