From e2b83152a3f705f2078853d00c8c6e9e70615f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 26 Aug 2019 08:21:36 -0400 Subject: [PATCH] Adding fps to video object if missing. --- bazarr/get_subtitle.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index f4c1db359..4a027fa24 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -962,6 +962,9 @@ def refine_from_ffprobe(path, video): if 'codec' in data['videos'][0]: if not video.video_codec: video.video_codec = data['videos'][0]['codec'] + if 'framerate' in data['videos'][0]: + if not video.fps: + video.fps = data['videos'][0]['framerate'] if 'audios' not in data: logging.debug('BAZARR FFprobe was unable to find audio tracks in the file!')