This commit is contained in:
2026-01-16 01:52:29 -08:00
parent 12436e5a6a
commit 6bc3cbfe9c

View File

@@ -1253,10 +1253,12 @@ class HydrusNetwork(Store):
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,
# 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:
debug(f"{self._log_prefix()} get_file: returning server path (not local): {server_path}")
return server_path
debug(
f"{self._log_prefix()} get_file: server path not locally accessible, falling back to HTTP: {server_path}"
)
# Fallback to browser URL with access key
base_url = str(self.URL).rstrip("/")