You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use resolve_dir for direct URL destination (follow-up to #19)
_run_direct_url_with_cli now calls resolve_dir on the destination,
matching the queue path in engine/job_queue.py:_resolve_job_output_dir.
This handles empty/relative/absolute destinations consistently and
rejects paths that escape DOWNLOADS_DIR (e.g. "../etc") with a
ValueError, instead of silently resolving outside the base.
Adds two regression tests in tests/test_direct_url_contracts.py:
- relative destination "Singles" lands under
single_downloads_dir/Singles/
- escape destination "../../etc" raises ValueError and
download_with_ytdlp is never invoked
Addresses the review comment on #19.
0 commit comments