From dcde777b202b3e38b90503a01d025f289654b44a Mon Sep 17 00:00:00 2001 From: nathom Date: Mon, 2 Aug 2021 22:15:54 -0700 Subject: [PATCH] Misc changes --- rip/config.toml | 3 --- streamrip/clients.py | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rip/config.toml b/rip/config.toml index d4fcae4..58777ab 100644 --- a/rip/config.toml +++ b/rip/config.toml @@ -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 diff --git a/streamrip/clients.py b/streamrip/clients.py index 1aa549c..2503414 100644 --- a/streamrip/clients.py +++ b/streamrip/clients.py @@ -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()