diff -rupN video_upload/video_upload.module video_upload_new/video_upload.module --- video_upload/video_upload.module 2009-09-05 06:51:16.000000000 +1000 +++ video_upload.module 2009-10-23 13:31:44.000000000 +1100 @@ -323,8 +323,23 @@ function video_upload_field_settings($op * Implementation of CCK's hook_field(). */ function video_upload_field($op, $node, $field, &$items, $teaser, $page) { - // Nothing different from FileField, so simply do what FileField does. + // Basically the same as FileField, so simply do what FileField does. $return = filefield_field($op, $node, $field, $items, $teaser, $page); + + // Then if the values that sync with the external video changed update the + // video status so that next time cron runs the updates are picked up. + if ($op == 'update') { + $original_node = node_load($node->nid); + if ($node->title != $original_node->title || $node->body != $original_node->body) { + foreach ($items as $key => $item) { + // We should only be updating videos that are synced or we could cause trouble + if ($items[$key]['video_status'] == VIDEO_UPLOAD_STATUS_OK_SYNCED) { + $items[$key]['video_status'] = VIDEO_UPLOAD_STATUS_OK; + } + } + } + } + return $return; }