mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-19 17:55:23 -04:00
Misc changes
This commit is contained in:
parent
9ca3364bc0
commit
dcde777b20
2 changed files with 2 additions and 4 deletions
|
@ -118,6 +118,7 @@ class QobuzClient(Client):
|
|||
:type pwd: str
|
||||
:param kwargs: app_id: str, secrets: list, return_secrets: bool
|
||||
"""
|
||||
# TODO: make this faster
|
||||
secho(f"Logging into {self.source}", fg="green")
|
||||
email: str = kwargs["email"]
|
||||
pwd: str = kwargs["pwd"]
|
||||
|
@ -128,7 +129,7 @@ class QobuzClient(Client):
|
|||
logger.debug("Already logged in")
|
||||
return
|
||||
|
||||
if (kwargs.get("app_id") or kwargs.get("secrets")) in (None, [], ""):
|
||||
if not (kwargs.get("app_id") or kwargs.get("secrets")):
|
||||
secho("Fetching tokens — this may take a few seconds.", fg="magenta")
|
||||
logger.info("Fetching tokens from Qobuz")
|
||||
spoofer = Spoofer()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue