From 29a35dafd042a46a6af79b53a06717511727d5ca Mon Sep 17 00:00:00 2001 From: CanadianBaconBoi Date: Fri, 21 Jan 2022 10:31:51 -0800 Subject: [PATCH] Add new obfuscated token --- streamrip/constants.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/streamrip/constants.py b/streamrip/constants.py index 2aa725a..72395d4 100644 --- a/streamrip/constants.py +++ b/streamrip/constants.py @@ -1,6 +1,7 @@ """Constants that are kept in one place.""" import mutagen.id3 as id3 +import base64 AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0" @@ -174,8 +175,8 @@ MEDIA_TYPES = {"track", "album", "artist", "label", "playlist", "video"} COVER_SIZES = ("thumbnail", "small", "large", "original") TIDAL_CLIENT_INFO = { - "id": "Pzd0ExNVHkyZLiYN", - "secret": "W7X6UvBaho+XOi1MUeCX6ewv2zTdSOV3Y7qC3p3675I=", + "id": base64.b64decode("OFNFWldhNEoxTlZDNVU1WQ==").decode("iso-8859-1"), + "secret": base64.b64decode("b3dVWURreGRkeis5RnB2R1gyNERseEVDTnRGRU1CeGlwVTBsQmZyYnE2MD0=").decode("iso-8859-1"), } QOBUZ_BASE = "https://www.qobuz.com/api.json/0.2"