j
This commit is contained in:
@@ -27,8 +27,8 @@ def maybe_show_formats_table(
|
||||
|
||||
Returns an exit code when handled; otherwise None.
|
||||
"""
|
||||
if quiet_mode:
|
||||
return None
|
||||
# Do not suppress the picker in quiet/background mode: this selector UX is
|
||||
# required for Internet Archive "details" pages (which are not directly downloadable).
|
||||
|
||||
try:
|
||||
total_inputs = int(len(raw_urls or []) + len(piped_items or []))
|
||||
@@ -107,7 +107,7 @@ def maybe_show_formats_table(
|
||||
base_args.extend(["-path", str(out_arg)])
|
||||
|
||||
table = ResultTable(table_title).set_preserve_order(True)
|
||||
table.set_table("internetarchive.formats")
|
||||
table.set_table("internetarchive.format")
|
||||
table.set_source_command("download-file", base_args)
|
||||
|
||||
rows: List[Dict[str, Any]] = []
|
||||
@@ -474,6 +474,13 @@ class InternetArchive(Provider):
|
||||
"""
|
||||
URL = ("archive.org",)
|
||||
|
||||
TABLE_AUTO_STAGES = {
|
||||
"internetarchive": ["download-file"],
|
||||
"internetarchive.folder": ["download-file"],
|
||||
"internetarchive.format": ["download-file"],
|
||||
"internetarchive.formats": ["download-file"],
|
||||
}
|
||||
|
||||
def __init__(self, config: Optional[Dict[str, Any]] = None):
|
||||
super().__init__(config)
|
||||
conf = _pick_provider_config(self.config)
|
||||
@@ -577,7 +584,7 @@ class InternetArchive(Provider):
|
||||
path = f"https://archive.org/details/{identifier}"
|
||||
|
||||
sr = SearchResult(
|
||||
table="internetarchive",
|
||||
table="internetarchive.folder",
|
||||
title=title,
|
||||
path=path,
|
||||
detail=" · ".join(detail_parts),
|
||||
|
||||
Reference in New Issue
Block a user