From cfde13bf3c1d602767c7771dcedf4f96eae3b3b8 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Sat, 9 Nov 2024 17:08:56 +0100 Subject: [PATCH] Removed `HIRES` (`HI_RES` / MQA) legacy. Fixes tamland/python-tidal#297 --- tests/test_session.py | 2 +- tidalapi/media.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_session.py b/tests/test_session.py index b123af0..ccea9c7 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -142,7 +142,7 @@ def test_video_quality_defaults_to_best(session): @pytest.mark.parametrize( - "quality", ["LOW", "HIGH", "LOSSLESS", "HI_RES", "HI_RES_LOSSLESS"] + "quality", ["LOW", "HIGH", "LOSSLESS", "HI_RES_LOSSLESS"] ) def test_manually_set_audio_quality_is_preserved(session, quality): session.audio_quality = quality diff --git a/tidalapi/media.py b/tidalapi/media.py index e996923..4462ffa 100644 --- a/tidalapi/media.py +++ b/tidalapi/media.py @@ -58,7 +58,6 @@ class Quality(str, Enum): low_96k: str = "LOW" low_320k: str = "HIGH" high_lossless: str = "LOSSLESS" - hi_res: str = "HI_RES" hi_res_lossless: str = "HI_RES_LOSSLESS" default: str = low_320k @@ -480,7 +479,7 @@ class Stream: audio_mode: str = AudioMode.stereo # STEREO, DOLBY_ATMOS audio_quality: str = ( Quality.low_320k - ) # LOW, HIGH, LOSSLESS, HI_RES, HI_RES_LOSSLESS + ) # LOW, HIGH, LOSSLESS, HI_RES_LOSSLESS manifest_mime_type: str = "" manifest_hash: str = "" manifest: str = ""