f
This commit is contained in:
@@ -139,8 +139,12 @@ class Get_File(sh.Cmdlet):
|
||||
|
||||
debug(f"[get-file] Calling backend.get_file({file_hash})")
|
||||
|
||||
# Get file from backend (may return Path or URL string depending on backend)
|
||||
source_path = backend.get_file(file_hash)
|
||||
# Get file from backend (may return Path or URL string depending on backend).
|
||||
# We pass url=True if no explicit path was provided, which hints the backend
|
||||
# (specifically Hydrus) to return a browser-friendly URL instead of a local path.
|
||||
want_url = (output_path is None)
|
||||
debug(f"[get-file] Requesting file from backend (url_hint={want_url})...")
|
||||
source_path = backend.get_file(file_hash, url=want_url)
|
||||
|
||||
debug(f"[get-file] backend.get_file returned: {source_path}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user