1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-03-04 02:18:12 +00:00

Fix for Enzyme mkv object used before assignment.

This commit is contained in:
Louis Vézina 2019-11-04 06:34:33 -05:00
parent 8b3821b43b
commit 6614b136ab

View file

@ -34,6 +34,7 @@ class EmbeddedSubsReader:
mkv = enzyme.MKV(f)
except MalformedMKVError:
logging.error('BAZARR cannot analyze this MKV with our built-in MKV parser, you should install ffmpeg: ' + file)
else:
for subtitle_track in mkv.subtitle_tracks:
subtitles_list.append([subtitle_track.language, subtitle_track.forced, subtitle_track.codec_id])