From cbebcbd8182c35b377698ad38ac2a17be8ab110e Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 20 Jul 2015 20:26:40 -0500 Subject: [PATCH] Fix for the aspect ratio error Missing default value to not fail at the if statement. --- resources/lib/API.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/API.py b/resources/lib/API.py index d70da166..4b12d9a3 100644 --- a/resources/lib/API.py +++ b/resources/lib/API.py @@ -133,7 +133,7 @@ class API(): videotrack['videocodec'] = mediaStream.get('Codec') videotrack['height'] = mediaStream.get('Height') videotrack['width'] = mediaStream.get('Width') - videotrack['aspectratio'] = mediaStream.get('AspectRatio') + videotrack['aspectratio'] = mediaStream.get('AspectRatio', "1:1") videotrack['Video3DFormat'] = item.get('Video3DFormat') if len(videotrack['aspectratio']) >= 3: try: