fix: we don't want to spam debrid-link shit

This commit is contained in:
Goldy
2024-11-26 17:43:03 +01:00
parent 49cd90bd00
commit f9c0ec0a84
+2 -5
View File
@@ -33,7 +33,7 @@ class DebridLink:
for hash in chunk:
try:
add_torrent = await self.session.post(
"https://debrid-link.com/api/v2/seedbox/add",
f"{self.api_url}/seedbox/add",
data={"url": hash, "wait": True, "async": True},
)
add_torrent = await add_torrent.json()
@@ -42,10 +42,7 @@ class DebridLink:
await self.session.delete(f"{self.api_url}/seedbox/{torrent_id}/remove")
responses.append(add_torrent)
except Exception as e:
logger.warning(
f"Exception while checking cached status on DebridLink for {hash}: {e}"
)
except:
pass
return responses