sd
This commit is contained in:
@@ -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]],
|
||||
|
||||
Reference in New Issue
Block a user