mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-15 15:44:58 -04:00
Remove =format strings for Python3.7 users
This commit is contained in:
parent
e791c4d744
commit
399e911f7f
2 changed files with 3 additions and 3 deletions
|
@ -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}")
|
||||
|
|
|
@ -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())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue