mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
Fix exception when parsed title is empty
This commit is contained in:
@@ -434,6 +434,10 @@ async def filter(torrents: list, name: str, year: int):
|
||||
title = title.split("\n")[1]
|
||||
|
||||
parsed = parse(title)
|
||||
|
||||
if not parsed.parsed_title:
|
||||
continue
|
||||
|
||||
if not title_match(name, parsed.parsed_title):
|
||||
results.append((index, False))
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user