mirror of
https://github.com/nathom/streamrip.git
synced 2025-06-04 08:59:47 -04:00
Merge branch 'main' into dev
This commit is contained in:
commit
3b32a4af66
6 changed files with 365 additions and 221 deletions
|
@ -1,5 +1,5 @@
|
|||
"""streamrip: the all in one music downloader."""
|
||||
|
||||
__version__ = "1.7"
|
||||
__version__ = "1.8"
|
||||
|
||||
from . import clients, constants, converter, downloadtools, media
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue