Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
nathom 2021-06-24 22:51:30 -07:00
parent cdc7b5e1af
commit 6f03be91e2
2 changed files with 5 additions and 4 deletions

View file

@ -10,8 +10,7 @@ from typing import Any, Dict
import click
import tomlkit
from . import __version__
from .constants import CONFIG_DIR, CONFIG_PATH
from .constants import CONFIG_DIR, CONFIG_PATH, DOWNLOADS_DIR
from .exceptions import InvalidSourceError
logger = logging.getLogger("streamrip")
@ -64,7 +63,9 @@ class Config:
self.load()
else:
logger.debug("Creating toml config file at '%s'", self._path)
shutil.copy(self.default_config_path, CONFIG_PATH)
shutil.copy(self.default_config_path, self._path)
self.load()
self.file["downloads"]["folder"] = DOWNLOADS_DIR
def update(self):
"""Reset the config file except for credentials."""

View file

@ -1,6 +1,6 @@
[downloads]
# Folder where tracks are downloaded to
folder = "/Users/nathan/StreamripDownloads"
folder = ""
# Put Qobuz albums in a 'Qobuz' folder, Tidal albums in 'Tidal' etc.
source_subdirectories = false
# Download (and convert) tracks all at once, instead of sequentially.