File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
interactive_ai/services/resource/app/resource_management Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -389,12 +389,11 @@ def get_video_thumbnail_frame_by_id(
389389 video = VideoRepo (dataset_storage_identifier ).get_by_id (video_id )
390390 if frame_index is None :
391391 frame_index = video .total_frames // 2
392- if FeatureFlagProvider .is_enabled (FeatureFlag .FEATURE_FLAG_ASYNCHRONOUS_MEDIA_PREPROCESSING ):
393- if not video .preprocessing .status .is_finished ():
394- raise MediaNotPreprocessedException (media_id = video_id )
395- return MediaManager .get_single_thumbnail_frame_numpy (
396- video = video , dataset_storage_identifier = dataset_storage_identifier , frame_index = frame_index
397- )
392+ if (
393+ FeatureFlagProvider .is_enabled (FeatureFlag .FEATURE_FLAG_ASYNCHRONOUS_MEDIA_PREPROCESSING )
394+ and not video .preprocessing .status .is_finished ()
395+ ):
396+ raise MediaNotPreprocessedException (media_id = video_id )
398397
399398 video_binary_repo = VideoBinaryRepo (dataset_storage_identifier )
400399 try :
You can’t perform that action at this time.
0 commit comments