mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
fix: handle missing results count in YGGTorrent scraper
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user