From 4d43a3608be87bac6a7c9119d3e2f68b0987d254 Mon Sep 17 00:00:00 2001 From: Frank Epperlein Date: Thu, 23 Jan 2025 14:01:45 +0100 Subject: [PATCH] fix missing default --target value --- mtv_dl.py | 6 +++--- uv.lock | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mtv_dl.py b/mtv_dl.py index 194dd30..8b6e368 100755 --- a/mtv_dl.py +++ b/mtv_dl.py @@ -1412,7 +1412,7 @@ def download_command( ), ] = False, target: Annotated[ - Path | None, + Path, typer.Option( "--target", "-t", @@ -1428,7 +1428,7 @@ def download_command( If {{ext}} is not in the definition, it's appended automatically. """, # noqa: W291, W293 ), - ] = None, + ] = Path("{dir}/{channel}/{topic}/{start} {title}{ext}"), mark_only: Annotated[ bool, typer.Option( @@ -1517,7 +1517,7 @@ def download_command( quality_preference = ("url_http", "url_http_hd", "url_http_small") downloaded_file = downloader.download( quality=quality_preference, # type: ignore - target=target.expanduser() if target else Path.cwd(), + target=target.expanduser(), include_subtitles=not no_subtitles, include_nfo=not no_nfo, set_file_modification_date=set_file_mod_time, diff --git a/uv.lock b/uv.lock index c297f0b..7c9dc0b 100644 --- a/uv.lock +++ b/uv.lock @@ -412,7 +412,7 @@ wheels = [ [[package]] name = "mtv-dl" -version = "0.24.2" +version = "0.25.0" source = { editable = "." } dependencies = [ { name = "beautifulsoup4" },