Adding fps to video object if missing.

This commit is contained in:
Louis Vézina 2019-08-26 08:21:36 -04:00
parent e774bd41d0
commit e2b83152a3
1 changed files with 3 additions and 0 deletions

View File

@ -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!')