| « MythTV video streaming hack | B2evolution antispam list » |
Missing directory structure in Mythweb videos
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 ' ';
Trackback address for this post
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