From 1ba24a5c9a4690f7525f8e644d131e5fa22d2d2c Mon Sep 17 00:00:00 2001 From: oskvr37 Date: Sat, 27 Jul 2024 00:43:17 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20add=20better=20types=20?= =?UTF-8?q?to=20track?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tiddl/types.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tiddl/types.py b/tiddl/types.py index acd1449..53990bc 100644 --- a/tiddl/types.py +++ b/tiddl/types.py @@ -117,13 +117,15 @@ class PlaylistResponse(TypedDict): class TrackResponse(TypedDict): trackId: int - assetPresentation: str - audioMode: str + assetPresentation: Literal["FULL"] + audioMode: Literal["STEREO"] audioQuality: TrackQuality - manifestMimeType: str + manifestMimeType: Literal["application/dash+xml", "application/vnd.tidal.bts"] manifestHash: str manifest: str albumReplayGain: float albumPeakAmplitude: float trackReplayGain: float trackPeakAmplitude: float + bitDepth: int + sampleRate: int