This commit is contained in:
2026-01-11 18:56:26 -08:00
parent e70db8d8a6
commit 6076ea307b
7 changed files with 773 additions and 1476 deletions

View File

@@ -501,6 +501,26 @@ class InternetArchive(Provider):
"internetarchive.formats": ["download-file"],
}
def maybe_show_picker(
self,
*,
url: str,
item: Optional[Any] = None,
parsed: Dict[str, Any],
config: Dict[str, Any],
quiet_mode: bool,
) -> Optional[int]:
"""Generic hook for download-file to show a selection table for IA items."""
from cmdlet._shared import get_field as sh_get_field
return maybe_show_formats_table(
raw_urls=[url] if url else [],
piped_items=[item] if item else [],
parsed=parsed,
config=config,
quiet_mode=quiet_mode,
get_field=sh_get_field,
)
def __init__(self, config: Optional[Dict[str, Any]] = None):
super().__init__(config)
conf = _pick_provider_config(self.config)