fix: handle missing results count in YGGTorrent scraper

This commit is contained in:
g0ldyy
2025-11-26 17:35:48 +01:00
parent 4a677bf773
commit 52c7718c0e
+2
View File
@@ -177,6 +177,8 @@ class YGGTorrentScraper(BaseScraper):
total_results = 0
if offset == 0:
count_match = RESULTS_COUNT_PATTERN.search(html_content)
if not count_match:
return [], 0
total_results = int(count_match.group(1))
tasks = []