From a414a6aee6a9ac03eda5ee5df5c55c74bdbf15d0 Mon Sep 17 00:00:00 2001 From: evilchili Date: Fri, 12 Apr 2024 15:23:57 -0700 Subject: [PATCH] updating readme --- README.md | 4 ++-- src/bandcamp_importer/cli.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2a0fd1e..8719d26 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # bandcamp-importer -Auto-generated by poetry-slam. +A small tool for extracting zip files downloaded from Bandcamp into my local media root ## Usage ```bash -bandcamp_importer --help +import-albums --help ``` diff --git a/src/bandcamp_importer/cli.py b/src/bandcamp_importer/cli.py index 0b2ad45..e60ea28 100644 --- a/src/bandcamp_importer/cli.py +++ b/src/bandcamp_importer/cli.py @@ -17,7 +17,7 @@ CONFIG_DEFAULTS = """ MEDIA_ROOT=/music # Where to look for downloaded zip files -DOWNLOADS = ~/Downloads +DOWNLOADS=~/Downloads LOG_LEVEL=INFO """ @@ -52,9 +52,8 @@ def main( Extract album zip files downloaded from Bandcamp into your media root. """ app_state["config_file"] = config_file - load_dotenv(stream=io.StringIO(CONFIG_DEFAULTS)) - print(f"Loading config from {app_state['config_file']}") load_dotenv(app_state["config_file"]) + load_dotenv(stream=io.StringIO(CONFIG_DEFAULTS)) app_state['MEDIA_ROOT'] = (media_root or Path(os.environ['MEDIA_ROOT'])).expanduser().resolve() app_state['DOWNLOADS'] = (downloads or Path(os.environ['DOWNLOADS'])).expanduser().resolve()