df
This commit is contained in:
@@ -1079,13 +1079,13 @@ class Download_File(Cmdlet):
|
||||
f"[download-file] Not available on OpenLibrary; searching LibGen for: {title_text}",
|
||||
file=sys.stderr,
|
||||
)
|
||||
from cmdlet.search_provider import CMDLET as _SEARCH_PROVIDER_CMDLET
|
||||
from cmdlet.search_file import CMDLET as _SEARCH_FILE_CMDLET
|
||||
|
||||
fallback_query = title_text
|
||||
exec_fn = getattr(_SEARCH_PROVIDER_CMDLET, "exec", None)
|
||||
exec_fn = getattr(_SEARCH_FILE_CMDLET, "exec", None)
|
||||
if not callable(exec_fn):
|
||||
log(
|
||||
"[download-file] search-provider cmdlet unavailable; cannot run LibGen fallback search",
|
||||
"[download-file] search-file cmdlet unavailable; cannot run LibGen fallback search",
|
||||
file=sys.stderr,
|
||||
)
|
||||
continue
|
||||
@@ -1099,7 +1099,7 @@ class Download_File(Cmdlet):
|
||||
config,
|
||||
)
|
||||
|
||||
# Promote the search-provider table to a display overlay so it renders.
|
||||
# Promote the search-file table to a display overlay so it renders.
|
||||
try:
|
||||
table_obj = pipeline_context.get_last_result_table()
|
||||
items_obj = pipeline_context.get_last_result_items()
|
||||
|
||||
Reference in New Issue
Block a user