This commit is contained in:
2026-02-02 14:09:42 -08:00
parent ccd47db869
commit 6309a3ff3e
7 changed files with 134 additions and 82 deletions

View File

@@ -743,23 +743,10 @@ class Download_File(Cmdlet):
pass
try:
from SYS.rich_display import render_item_details_panel
from SYS.result_table import Table
for idx, item in enumerate(emitted_items, 1):
render_item_details_panel(item, title=f"#{idx} Item Details")
table = Table("Result")
for item in emitted_items:
table.add_result(item)
setattr(table, "_rendered_by_cmdlet", True)
subject = emitted_items[0] if len(emitted_items) == 1 else list(emitted_items)
pipeline_context.set_last_result_table_overlay(
table,
list(emitted_items),
subject=subject,
)
# Use helper to display items and make them @-selectable
from ._shared import display_and_persist_items
display_and_persist_items(list(emitted_items), title="Result", subject=subject)
except Exception:
pass
@@ -1969,7 +1956,12 @@ class Download_File(Cmdlet):
else:
import re
if not re.match(r"^\s*#?\d+\s*$", str(query_format)):
if re.match(r"^\s*#?\d+\s*$", str(query_format)):
# Numeric format like "720" or "1080p" - will be resolved later via resolve_height_selector
# Don't set ytdl_format yet; let it fall through to per-URL resolution
pass
else:
# Non-numeric format string - use as literal
ytdl_format = query_format
debug(f"DEBUG: [download-file] Using literal query_format '{query_format}' as ytdl_format")
playlist_selection_handled = False