Remove =format strings for Python3.7 users

This commit is contained in:
nathom 2021-03-30 12:07:36 -07:00
parent e791c4d744
commit 399e911f7f
2 changed files with 3 additions and 3 deletions

View file

@ -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}")

View file

@ -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())