From 399e911f7f6ba8a7ea9acf65b4fa6c35b2a8b9f7 Mon Sep 17 00:00:00 2001 From: nathom Date: Tue, 30 Mar 2021 12:07:36 -0700 Subject: [PATCH] Remove =format strings for Python3.7 users --- streamrip/clients.py | 4 ++-- streamrip/downloader.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/streamrip/clients.py b/streamrip/clients.py index fef1081..60a7dee 100644 --- a/streamrip/clients.py +++ b/streamrip/clients.py @@ -494,7 +494,7 @@ class TidalClient(ClientInterface): } resp = self._api_request(f"tracks/{track_id}/playbackinfopostpaywall", params) manifest = json.loads(base64.b64decode(resp["manifest"]).decode("utf-8")) - logger.debug(f"{pformat(manifest)=}") + logger.debug(f"{pformat(manifest)}") return { "url": manifest["urls"][0], "enc_key": manifest.get("keyId"), @@ -620,7 +620,7 @@ class TidalClient(ClientInterface): headers = {"authorization": f"Bearer {token}"} resp = requests.get("https://api.tidal.com/v1/sessions", headers=headers).json() if resp.get("status", 200) != 200: - raise Exception(f"Login failed {resp=}") + raise Exception(f"Login failed {resp}") if str(resp.get("userId")) != str(user_id): raise Exception(f"User id mismatch {resp['userId']} v {user_id}") diff --git a/streamrip/downloader.py b/streamrip/downloader.py index 204bce6..adf028f 100644 --- a/streamrip/downloader.py +++ b/streamrip/downloader.py @@ -879,7 +879,7 @@ class Album(Tracklist): elif self.client.source == "tidal": self.container = "AAC" else: - raise Exception(f"{self.bit_depth=}, {self.sampling_rate=}") + raise Exception(f"{self.bit_depth}, {self.sampling_rate}") formatted_folder = clean_format(self.folder_format, self._get_formatter())