kl
This commit is contained in:
@@ -2685,6 +2685,14 @@ class Download_File(Cmdlet):
|
||||
pass
|
||||
|
||||
try:
|
||||
if HydrusNetwork is not None and isinstance(backend, HydrusNetwork):
|
||||
hashes = backend.find_hashes_by_url(canonical_url) or []
|
||||
for existing_hash in hashes:
|
||||
normalized = sh.normalize_hash(existing_hash)
|
||||
if normalized:
|
||||
return normalized
|
||||
continue
|
||||
|
||||
hits = backend.search(f"url:{canonical_url}", limit=5) or []
|
||||
except Exception:
|
||||
hits = []
|
||||
|
||||
Reference in New Issue
Block a user