This commit is contained in:
2026-01-21 13:51:17 -08:00
parent a90c772ad9
commit 7a357f45bd
2 changed files with 5 additions and 11 deletions

View File

@@ -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

View File

@@ -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,
},