Index: flashvideo.module =================================================================== --- flashvideo.module (revision 2161) +++ flashvideo.module (revision 2162) @@ -1270,7 +1270,7 @@ flashvideo_import(flashvideo_variable_get($type->type, 'import', ($type->type .'_import')), $type->type); // First we will want to grab all files that have not been processed yet. - $files = db_query("SELECT n.nid, n.type, f.*, fv.flags + $files = db_query("SELECT n.nid, n.type, f.*, fv.flags, fv.status FROM {files} AS f LEFT JOIN {flashvideo} AS fv ON f.fid = fv.fid LEFT JOIN {node} AS n ON fv.nid = n.nid @@ -1303,8 +1303,9 @@ // Get the default parameters. $params = flashvideo_get_convert_params($type->type); + $flags = $file->status == FLASHVIDEO_STATUS_OK ? FLASHVIDEO_REGEN_VIDEO + FLASHVIDEO_REGEN_THUMB : $file->flags; // Invoke other modules to allow them to override the conversion parameters. - if ($override_params = module_invoke_all('flashvideo_get_params', $file, $file->flags, $params)) { + if ($override_params = module_invoke_all('flashvideo_get_params', $file, $flags, $params)) { if (count($override_params)) { foreach ($override_params as $param => $value) { $params[$param] = $value;