Prevent subtitles not having a proper matches attribute from raising a TypeError exception. #2243

This commit is contained in:
morpheus65535 2023-09-08 11:43:37 -04:00
parent fbe6b765ae
commit 85d300f94e
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ def process_subtitle(subtitle, media_type, audio_language, path, max_score, is_u
subtitle_id=subtitle.id,
reversed_subtitles_path=reversed_subtitles_path,
hearing_impaired=subtitle.language.hi,
matched=list(subtitle.matches),
matched=list(subtitle.matches or []),
not_matched=_get_not_matched(subtitle, media_type))