diff --git a/src/ffx/file_properties.py b/src/ffx/file_properties.py index 1e2d9d7..69e9799 100644 --- a/src/ffx/file_properties.py +++ b/src/ffx/file_properties.py @@ -240,13 +240,11 @@ class FileProperties(): crops[cropParam] = crops.get(cropParam, 0) + 1 - cropHistogram = sorted(crops, reverse=True) - - print(cropHistogram[0]) - - - # return json.loads(ffprobeOutput)['streams'] - + if crops: + cropHistogram = sorted(crops, reverse=True) + return cropHistogram[0] + else: + return '' def getMediaDescriptor(self):