diff --git a/tests/test_session.py b/tests/test_session.py index b123af0..7852de7 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -141,9 +141,7 @@ def test_video_quality_defaults_to_best(session): assert session.video_quality == "HIGH" -@pytest.mark.parametrize( - "quality", ["LOW", "HIGH", "LOSSLESS", "HI_RES", "HI_RES_LOSSLESS"] -) +@pytest.mark.parametrize("quality", ["LOW", "HIGH", "LOSSLESS", "HI_RES_LOSSLESS"]) def test_manually_set_audio_quality_is_preserved(session, quality): session.audio_quality = quality assert session.audio_quality == quality diff --git a/tidalapi/media.py b/tidalapi/media.py index a063a34..1aaadad 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 @@ -86,7 +85,7 @@ def __str__(self) -> str: class MediaMetadataTags(str, Enum): - hires_lossless: str = "HIRES_LOSSLESS" + hi_res_lossless: str = "HIRES_LOSSLESS" lossless: str = "LOSSLESS" dolby_atmos: str = "DOLBY_ATMOS" @@ -442,7 +441,7 @@ def is_hi_res_lossless(self) -> bool: try: if ( self.media_metadata_tags - and MediaMetadataTags.hires_lossless in self.media_metadata_tags + and MediaMetadataTags.hi_res_lossless in self.media_metadata_tags ): return True except: @@ -478,9 +477,7 @@ class Stream: track_id: int = -1 audio_mode: str = AudioMode.stereo # STEREO, DOLBY_ATMOS - audio_quality: str = ( - Quality.low_320k - ) # LOW, HIGH, LOSSLESS, HI_RES, HI_RES_LOSSLESS + audio_quality: str = Quality.low_320k # LOW, HIGH, LOSSLESS, HI_RES_LOSSLESS manifest_mime_type: str = "" manifest_hash: str = "" manifest: str = ""