This commit is contained in:
2025-12-30 05:48:01 -08:00
parent 925a1631bc
commit a97657a757
3 changed files with 224 additions and 58 deletions

View File

@@ -567,6 +567,25 @@ class HydrusNetwork:
"batched": results
}
def get_url_info(self, url: str) -> dict[str, Any]:
"""Get information about a URL.
Hydrus Client API: GET /add_urls/get_url_info
Docs: https://hydrusnetwork.github.io/hydrus/developer_api.html#add_urls_get_url_info
"""
url = str(url or "").strip()
if not url:
raise ValueError("url must not be empty")
spec = HydrusRequestSpec(
method="GET",
endpoint="/add_urls/get_url_info",
query={
"url": url
},
)
return cast(dict[str, Any], self._perform_request(spec))
def delete_url(self,
file_hashes: Union[str,
Iterable[str]],