Coming Underground
« MythTV video streaming hackB2evolution antispam list »

Missing directory structure in Mythweb videos

Permalink 2010-03-05 08:31, by jaervosz, Categories: General, Universe/English, Mythtv , Tags: hack, mythtv, mythweb, video

Somehow the Directory structure in the Mythweb videos section is empty using mythweb-0.22_p22763.

Perhaps something is b0rked in my setup, so I had to hack it up a bit since the filename in videometadata doesn't overlap with my VideoStartupDir setting.

--- modules/video/handler.php.orig      2010-03-04 10:23:05.000000000 +0100
+++ modules/video/handler.php   2010-03-04 10:25:13.000000000 +0100
@@ -120,5 +120,6 @@
         foreach ($dirs as $dir) {
             if ($dir) {
-                if(strpos($file, $dir) !== false) {
+               #Disable since $file and $dir doesn't overlap
+                #if(strpos($file, $dir) != false) {
                     if (!isset($PATH_TREE[$dir]))
                         $PATH_TREE[$dir] = array('display' => $dir,
@@ -128,5 +129,5 @@
                     $file = str_replace($dir, '', $file);
                     break;
-                }
+                #}
             }
         }
@@ -150,4 +151,6 @@

     function output_path_picker($path, $padding=0) {
+       #Hide VideoStartupDir
+       $path=str_replace(setting('VideoStartupDir', hostname),"",$path);
         for ($i = 0; $i < $padding; $i++)
             echo ' ';

1 comment »Send a trackback »

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

1 comment

Comment from: Resume Writing Service [Visitor] · http://www.resume-service.biz
Hi, nice post. I have been thinking about this topic,so thanks for sharing. I will likely be coming back to your blog. Keep up the good work
2010-07-30 @ 14:30

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

©2010 by admin

Contact Jaervosz