mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
fix: add error handling for torrent title extraction and unreleased content in comet scraper
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user