Merge pull request #152 from davidemarcoli/bugfix/exception-on-empty-parsed-title

fix: title parsing
This commit is contained in:
Goldy
2024-10-01 22:18:44 +02:00
committed by GitHub
+2 -1
View File
@@ -434,7 +434,8 @@ async def filter(torrents: list, name: str, year: int):
title = title.split("\n")[1]
parsed = parse(title)
if not title_match(name, parsed.parsed_title):
if parsed.parsed_title and not title_match(name, parsed.parsed_title):
results.append((index, False))
continue