diff --git a/src/kili/services/asset_import/video.py b/src/kili/services/asset_import/video.py index 3b35373a2..8ad4fe0bd 100644 --- a/src/kili/services/asset_import/video.py +++ b/src/kili/services/asset_import/video.py @@ -213,13 +213,16 @@ def has_complete_processing_parameters(asset) -> bool: "numberOfFrames", "startTime", ] - required_types = [str, float, float, int, float] + required_types = [str, (int, float), (int, float), (int, float), (int, float)] for key, required_type in zip(required_keys, required_types): value = processing_parameters.get(key) if value is None or not isinstance(value, required_type): return False + if not float(processing_parameters.get("numberOfFrames")).is_integer(): + return False + return True except JSONDecodeError: return False