fix(parser): handle None return from raw_parser to avoid AttributeError (#992)

When raw_parser fails to parse non-episodic resources (movies, collections),
it returns None. Add guard clause in title_parser to skip these gracefully
instead of crashing on attribute access. Downgrade log level from error to
info since this is expected behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Estrella Pan
2026-03-01 08:12:18 +01:00
parent 66a2b45f57
commit d980c3c714
2 changed files with 6 additions and 3 deletions

View File

@@ -68,6 +68,8 @@ class TitleParser:
episode = Episode(**episode_dict)
else:
episode = raw_parser(raw)
if episode is None:
return None
titles = {
"zh": episode.title_zh,