From 5cd13ae4dd1d3a45275e05ba3db60506546c5e7a Mon Sep 17 00:00:00 2001 From: nathom Date: Thu, 24 Jun 2021 10:17:38 -0700 Subject: [PATCH] Fix #100, #101, #102 Signed-off-by: nathom --- streamrip/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/streamrip/cli.py b/streamrip/cli.py index eb38cb7..6e1f355 100644 --- a/streamrip/cli.py +++ b/streamrip/cli.py @@ -63,7 +63,7 @@ def cli(ctx, **kwargs): logger.setLevel("DEBUG") logger.debug("Starting debug log") - if ctx.invoked_subcommand not in {None, "lastfm", "search", "disover"}: + if ctx.invoked_subcommand not in {None, "lastfm", "search", "disover", "config"}: return config = Config() @@ -284,6 +284,7 @@ def lastfm(ctx, source, url): @click.pass_context def config(ctx, **kwargs): """Manage the streamrip configuration file.""" + global config if kwargs["reset"]: config.reset()