fix: add error handling for torrent title extraction and unreleased content in comet scraper

This commit is contained in:
g0ldyy
2026-01-05 21:30:35 +01:00
parent b669b379c0
commit 7db932ff66
+6 -1
View File
@@ -17,8 +17,13 @@ class CometScraper(BaseScraper):
for torrent in results["streams"]:
title_full = torrent["description"]
title = title_full.split("\n")[0].split("📄 ")[1]
if title_full == "Content not digitally released yet.":
break
try:
title = title_full.split("\n")[0].split("📄 ")[1]
except:
continue
seeders = (
int(title_full.split("👤 ")[1].split(" ")[0])
if "👤" in title_full