From fadf6cc2c678b89103817cb5b4f9d4ef152b39ae Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Wed, 10 Jan 2024 20:39:01 +0100 Subject: 🛠️ Fixed `cfg` cli command. Was broken after refactoring. Fixes #5. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/cli.py | 2 +- tidal_dl_ng/model/cfg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tidal_dl_ng/cli.py b/tidal_dl_ng/cli.py index c021d86..dfc6422 100644 --- a/tidal_dl_ng/cli.py +++ b/tidal_dl_ng/cli.py @@ -37,7 +37,7 @@ def callback_app( @app.command(name="cfg") def settings_management( - names: list[str] = None, + names: Annotated[Optional[list[str]], typer.Argument()] = None, editor: Annotated[ bool, typer.Option("--editor", "-e", help="Open the settings file in your default editor.") ] = False, diff --git a/tidal_dl_ng/model/cfg.py b/tidal_dl_ng/model/cfg.py index 0769cad..5571902 100644 --- a/tidal_dl_ng/model/cfg.py +++ b/tidal_dl_ng/model/cfg.py @@ -17,7 +17,7 @@ class Settings: video_download: bool = True multi_thread: bool = False download_delay: bool = True - download_base_path: str = "./download/" + download_base_path: str = "./download" quality_audio: Quality = Quality.low_320k quality_video: QualityVideo = QualityVideo.P480 use_playlist_folder: bool = True -- cgit v1.3.1