? .video.module.marks
? video_update.patch
? views_video.patch
Index: video.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video/video.install,v
retrieving revision 1.3.2.2
diff -u -r1.3.2.2 video.install
--- video.install	15 Feb 2008 15:43:59 -0000	1.3.2.2
+++ video.install	5 Mar 2008 13:28:21 -0000
@@ -194,16 +194,13 @@
   else if (strpos($vidfile, 'google:') === 0) {
     $file_type = 'google';
   }
-  else if (preg_match('#^http[s]?://#', $vidfile) === 1) { // starts with http[s]?://
+  else if(db_result(db_query("SELECT count(fid) FROM {files} WHERE nid=%d", $node->nid)) > 0) {
+    $file_type = 'upload';
+  }
+  else if ($vidfile != '' ) { // enable absolute urls and relative paths
     $file_type = 'url';
   }
   else {
-    $files = db_result(db_query("SELECT count(fid) FROM {files} WHERE nid=%d", $node->nid));
-    if ($files > 0) {
-      $file_type = 'upload';
-    }
-  }
-  if ($file_type == '') {
     drupal_set_message(t('Could not determine video type of node %nid', array('%nid' => $node->nid)), 'error');
   }
   return $file_type;
