mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-28 05:54:52 -04:00
Misc fixes; formatting
This commit is contained in:
parent
47723c45cf
commit
696e844c30
4 changed files with 50 additions and 47 deletions
|
@ -4,7 +4,6 @@ import json
|
|||
import logging
|
||||
import time
|
||||
from abc import ABC, abstractmethod
|
||||
from pprint import pformat, pprint
|
||||
from typing import Generator, Sequence, Tuple, Union
|
||||
|
||||
import click
|
||||
|
@ -491,7 +490,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(manifest)
|
||||
return {
|
||||
"url": manifest["urls"][0],
|
||||
"enc_key": manifest.get("keyId"),
|
||||
|
@ -547,7 +546,6 @@ class TidalClient(ClientInterface):
|
|||
if "status" in resp and resp["status"] != 200:
|
||||
raise Exception(f"Device authorization failed {resp}")
|
||||
|
||||
logger.debug(pformat(resp))
|
||||
self.device_code = resp["deviceCode"]
|
||||
self.user_code = resp["userCode"]
|
||||
self.user_code_expiry = resp["expiresIn"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue