diff --git a/src/api/profile.rs b/src/api/profile.rs index 4c0dfb03..ebfa30a6 100644 --- a/src/api/profile.rs +++ b/src/api/profile.rs @@ -1044,7 +1044,8 @@ pub async fn get_file_profile_handler( .or_else(|| { // Fallback to database (backward compatibility) db_face_filter - .and_then(|v| serde_json::from_value::(v).ok()) + .as_ref() + .and_then(|v| serde_json::from_value::(v.clone()).ok()) }) .unwrap_or_else(FaceFilterSettings::defaults); @@ -1058,10 +1059,10 @@ pub async fn get_file_profile_handler( "video", "", duration, - width, - height, + width as u32, + height as u32, fps, - total_frames, + total_frames as u64, ); new_profile.face_filter = Some(face_filter.clone()); if let Err(e) = new_profile.save_to_disk(output_dir) {