mirror of
https://github.com/nathom/streamrip.git
synced 2025-06-06 17:51:22 -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 click
|
||||||
import tomlkit
|
import tomlkit
|
||||||
|
|
||||||
from . import __version__
|
from .constants import CONFIG_DIR, CONFIG_PATH, DOWNLOADS_DIR
|
||||||
from .constants import CONFIG_DIR, CONFIG_PATH
|
|
||||||
from .exceptions import InvalidSourceError
|
from .exceptions import InvalidSourceError
|
||||||
|
|
||||||
logger = logging.getLogger("streamrip")
|
logger = logging.getLogger("streamrip")
|
||||||
|
@ -64,7 +63,9 @@ class Config:
|
||||||
self.load()
|
self.load()
|
||||||
else:
|
else:
|
||||||
logger.debug("Creating toml config file at '%s'", self._path)
|
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):
|
def update(self):
|
||||||
"""Reset the config file except for credentials."""
|
"""Reset the config file except for credentials."""
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[downloads]
|
[downloads]
|
||||||
# Folder where tracks are downloaded to
|
# Folder where tracks are downloaded to
|
||||||
folder = "/Users/nathan/StreamripDownloads"
|
folder = ""
|
||||||
# Put Qobuz albums in a 'Qobuz' folder, Tidal albums in 'Tidal' etc.
|
# Put Qobuz albums in a 'Qobuz' folder, Tidal albums in 'Tidal' etc.
|
||||||
source_subdirectories = false
|
source_subdirectories = false
|
||||||
# Download (and convert) tracks all at once, instead of sequentially.
|
# Download (and convert) tracks all at once, instead of sequentially.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue