updating readme

This commit is contained in:
evilchili 2024-04-12 15:23:57 -07:00
parent b682c9f945
commit a414a6aee6
2 changed files with 4 additions and 5 deletions

View File

@ -1,10 +1,10 @@
# bandcamp-importer # bandcamp-importer
Auto-generated by poetry-slam. A small tool for extracting zip files downloaded from Bandcamp into my local media root
## Usage ## Usage
```bash ```bash
bandcamp_importer --help import-albums --help
``` ```

View File

@ -52,9 +52,8 @@ def main(
Extract album zip files downloaded from Bandcamp into your media root. Extract album zip files downloaded from Bandcamp into your media root.
""" """
app_state["config_file"] = config_file 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(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['MEDIA_ROOT'] = (media_root or Path(os.environ['MEDIA_ROOT'])).expanduser().resolve()
app_state['DOWNLOADS'] = (downloads or Path(os.environ['DOWNLOADS'])).expanduser().resolve() app_state['DOWNLOADS'] = (downloads or Path(os.environ['DOWNLOADS'])).expanduser().resolve()