--- mythweb-bak/modules/video/handler.php       2008-12-17 11:41:32.605787399 -0500
+++ mythweb/modules/video/handler.php   2009-01-22 16:06:18.145739327 -0500
@@ -32,37 +32,46 @@
             default:            return "http://www.imdb.com/Title?".$num;
         }
        }
 
 // Make sure the video directory exists
-    if (file_exists('data/video')) {
-    // File is not a directory or a symlink
-        if (!is_dir('data/video') && !is_link('data/video')) {
-            custom_error('An invalid file exists at data/video.  Please remove it in'
-                        .' order to use the video portions of MythWeb.');
-        }
-    }
-// Create the symlink, if possible.
-    else {
-        if ($mythvideo_dir) {
-        // You can't symlink on windows
-            if (strtoupper(substr(php_uname('s'), 0, 3)) != 'WIN') {
-                $ret = @symlink($mythvideo_dir, 'data/video');
-                if (!$ret) {
-                    custom_error("Could not create a symlink to $mythvideo_dir, the local MythVideo"
-                                .' directory for this hostname ('.hostname.').  Please create a'
-                                .' symlink to your MythVideo directory at data/video in order to'
-                                .' use the video portions of MythWeb.');
-                }
+
+    $mythvideo_dir_ar = split(":", $mythvideo_dir);
+    $i = 1;
+    foreach ($mythvideo_dir_ar as $path) { 
+        $datapath = 'data/video' . ($i == 1 ? "" : "$i");
+
+        if (file_exists($datapath)) {
+        // File is not a directory or a symlink
+            if (!is_dir($datapath) && !is_link($datapath)) {
+                custom_error("An invalid file exists at $datapath.  Please remove it in"
+                            .' order to use the video portions of MythWeb.');
             }
         }
+    // Create the symlink, if possible.
         else {
-            custom_error('Could not find a value in the database for the'
-                        .' MythVideo directory for this hostname ('.hostname.').'
-                        .' Please update your <a href="'.root.'settings/mythweb">settings</a>'
-                        .' to point to the correct location.');
+            if ($mythvideo_dir) {
+            // You can't symlink on windows
+                if (strtoupper(substr(php_uname('s'), 0, 3)) != 'WIN') {
+                   $ret = @symlink($path, $datapath);
+                   if (!$ret) {
+                       custom_error("Could not create a symlink to $path, the local MythVideo"
+                                   .' directory for this hostname ('.hostname.').  Please create a'
+                                   ." symlink to your MythVideo directory at $datapath in order to"
+                                   .' use the video portions of MythWeb.');
+                   }
+    
+                }
+            }
+            else {
+                custom_error('Could not find a value in the database for the'
+                            .' MythVideo directory for this hostname ('.hostname.').'
+                            .' Please update your <a href="'.root.'settings/mythweb">settings</a>'
+                            .' to point to the correct location.');
+            }
         }
+        $i++;
     }
 
 // Make sure the video covers directory exists
     if (file_exists('data/video_covers')) {
     // File is not a directory or a symlink

