mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-20 10:15:23 -04:00
Misc changes
This commit is contained in:
parent
9ca3364bc0
commit
dcde777b20
2 changed files with 2 additions and 4 deletions
|
@ -157,6 +157,3 @@ progress_bar = "dainty"
|
||||||
[misc]
|
[misc]
|
||||||
# Metadata to identify this config file. Do not change.
|
# Metadata to identify this config file. Do not change.
|
||||||
version = "1.2"
|
version = "1.2"
|
||||||
# Keep a file containing all of the debug logs for every use of streamrip
|
|
||||||
# in the config directory
|
|
||||||
log_file = false
|
|
||||||
|
|
|
@ -118,6 +118,7 @@ class QobuzClient(Client):
|
||||||
:type pwd: str
|
:type pwd: str
|
||||||
:param kwargs: app_id: str, secrets: list, return_secrets: bool
|
:param kwargs: app_id: str, secrets: list, return_secrets: bool
|
||||||
"""
|
"""
|
||||||
|
# TODO: make this faster
|
||||||
secho(f"Logging into {self.source}", fg="green")
|
secho(f"Logging into {self.source}", fg="green")
|
||||||
email: str = kwargs["email"]
|
email: str = kwargs["email"]
|
||||||
pwd: str = kwargs["pwd"]
|
pwd: str = kwargs["pwd"]
|
||||||
|
@ -128,7 +129,7 @@ class QobuzClient(Client):
|
||||||
logger.debug("Already logged in")
|
logger.debug("Already logged in")
|
||||||
return
|
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")
|
secho("Fetching tokens — this may take a few seconds.", fg="magenta")
|
||||||
logger.info("Fetching tokens from Qobuz")
|
logger.info("Fetching tokens from Qobuz")
|
||||||
spoofer = Spoofer()
|
spoofer = Spoofer()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue