Skip to content

Commit

Permalink
fix missing default --target value
Browse files Browse the repository at this point in the history
  • Loading branch information
fnep committed Jan 23, 2025
1 parent 261b51e commit 4d43a36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mtv_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ def download_command(
),
] = False,
target: Annotated[
Path | None,
Path,
typer.Option(
"--target",
"-t",
Expand All @@ -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(
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4d43a36

Please sign in to comment.