Skip to content

Commit f9c0ec0

Browse files
committed
fix: we don't want to spam debrid-link shit
1 parent 49cd90b commit f9c0ec0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

comet/debrid/debridlink.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def get_instant(self, chunk: list):
3333
for hash in chunk:
3434
try:
3535
add_torrent = await self.session.post(
36-
"https://debrid-link.com/api/v2/seedbox/add",
36+
f"{self.api_url}/seedbox/add",
3737
data={"url": hash, "wait": True, "async": True},
3838
)
3939
add_torrent = await add_torrent.json()
@@ -42,10 +42,7 @@ async def get_instant(self, chunk: list):
4242
await self.session.delete(f"{self.api_url}/seedbox/{torrent_id}/remove")
4343

4444
responses.append(add_torrent)
45-
except Exception as e:
46-
logger.warning(
47-
f"Exception while checking cached status on DebridLink for {hash}: {e}"
48-
)
45+
except:
4946
pass
5047

5148
return responses

0 commit comments

Comments
 (0)