From 7a357f45bd0d85e2140b20e205eec0142b23eff4 Mon Sep 17 00:00:00 2001 From: Nose Date: Wed, 21 Jan 2026 13:51:17 -0800 Subject: [PATCH] j --- cmdlet/download_file.py | 12 +++--------- tool/ytdlp.py | 4 ++-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/cmdlet/download_file.py b/cmdlet/download_file.py index ae55d44..23409ef 100644 --- a/cmdlet/download_file.py +++ b/cmdlet/download_file.py @@ -2721,15 +2721,9 @@ class Download_File(Cmdlet): try: if selection_urls: - storage, hydrus_available = self._init_storage(config if isinstance(config, dict) else {}) - final_output_dir = resolve_target_dir(parsed, config) - if not self._preflight_url_duplicates_bulk( - urls=list(selection_urls), - storage=storage, - hydrus_available=hydrus_available, - final_output_dir=final_output_dir, - ): - return 0 + # Skip Duplicate Preflight on selection re-entry: + # User has already seen the table/status and explicitly selected an item. + # Skipping this reduces DB load and latency. if isinstance(config, dict): config["_skip_url_preflight"] = True config["_skip_direct_on_streaming_failure"] = True diff --git a/tool/ytdlp.py b/tool/ytdlp.py index 6186fd8..5ac5605 100644 --- a/tool/ytdlp.py +++ b/tool/ytdlp.py @@ -1628,13 +1628,13 @@ def download_media(opts: DownloadOptions, *, debug_logger: Optional[DebugLogger] source_url = entry.get("webpage_url") or entry.get("original_url") or entry.get("url") if not opts.quiet: - debug(f"✓ Downloaded: {media_path.name} ({len(tags)} tags)") + debug(f"✓ Downloaded: {media_path.name} ({len(tags_res)} tags)") if debug_logger is not None: debug_logger.write_record( "downloaded", { "path": str(media_path), - "tag_count": len(tags), + "tag_count": len(tags_res), "source_url": source_url, "sha256": hash_value, },