Merge branch 'main' into dev

This commit is contained in:
Nathan Thomas 2021-12-13 13:18:52 -08:00
commit 3b32a4af66
6 changed files with 365 additions and 221 deletions

View file

@ -1,5 +1,5 @@
"""streamrip: the all in one music downloader."""
__version__ = "1.7"
__version__ = "1.8"
from . import clients, constants, converter, downloadtools, media

View file

@ -870,7 +870,7 @@ class TidalClient(Client):
}
resp = self._api_post(f"{TIDAL_AUTH_URL}/device_authorization", data)
if "status" in resp and resp["status"] != 200:
if resp.get("status", 200) != 200:
raise Exception(f"Device authorization failed {resp}")
self.device_code = resp["deviceCode"]

View file

@ -174,8 +174,8 @@ MEDIA_TYPES = {"track", "album", "artist", "label", "playlist", "video"}
COVER_SIZES = ("thumbnail", "small", "large", "original")
TIDAL_CLIENT_INFO = {
"id": "aR7gUaTK1ihpXOEP",
"secret": "eVWBEkuL2FCjxgjOkR3yK0RYZEbcrMXRc2l8fU3ZCdE=",
"id": "Pzd0ExNVHkyZLiYN",
"secret": "W7X6UvBaho+XOi1MUeCX6ewv2zTdSOV3Y7qC3p3675I=",
}
QOBUZ_BASE = "https://www.qobuz.com/api.json/0.2"