Misc changes

This commit is contained in:
nathom 2021-08-02 22:15:54 -07:00
parent 9ca3364bc0
commit dcde777b20
2 changed files with 2 additions and 4 deletions

View file

@ -157,6 +157,3 @@ progress_bar = "dainty"
[misc]
# Metadata to identify this config file. Do not change.
version = "1.2"
# Keep a file containing all of the debug logs for every use of streamrip
# in the config directory
log_file = false

View file

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