mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-31 23:38:24 -04:00
parent
cdc7b5e1af
commit
6f03be91e2
2 changed files with 5 additions and 4 deletions
|
@ -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."""
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue