f
This commit is contained in:
@@ -1253,10 +1253,12 @@ class HydrusNetwork(Store):
|
|||||||
debug(f"{self._log_prefix()} get_file: could not resolve path from API: {e}")
|
debug(f"{self._log_prefix()} get_file: could not resolve path from API: {e}")
|
||||||
|
|
||||||
# If we found a path on the server but it's not locally accessible,
|
# If we found a path on the server but it's not locally accessible,
|
||||||
# return it as a string so it can be displayed in metadata panels.
|
# keep it for logging but continue to the browser URL fallback so the UI
|
||||||
|
# can still open the file via the Hydrus web UI.
|
||||||
if server_path:
|
if server_path:
|
||||||
debug(f"{self._log_prefix()} get_file: returning server path (not local): {server_path}")
|
debug(
|
||||||
return server_path
|
f"{self._log_prefix()} get_file: server path not locally accessible, falling back to HTTP: {server_path}"
|
||||||
|
)
|
||||||
|
|
||||||
# Fallback to browser URL with access key
|
# Fallback to browser URL with access key
|
||||||
base_url = str(self.URL).rstrip("/")
|
base_url = str(self.URL).rstrip("/")
|
||||||
|
|||||||
Reference in New Issue
Block a user