From f9c0ec0a84b6fa9a1e791990b690b6f8ffe0922d Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:43:03 +0100 Subject: [PATCH] fix: we don't want to spam debrid-link shit --- comet/debrid/debridlink.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/comet/debrid/debridlink.py b/comet/debrid/debridlink.py index 810ed41..b3f7261 100644 --- a/comet/debrid/debridlink.py +++ b/comet/debrid/debridlink.py @@ -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