summaryrefslogtreecommitdiff
path: root/includes/inc_stream.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/inc_stream.php')
-rwxr-xr-xincludes/inc_stream.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/includes/inc_stream.php b/includes/inc_stream.php
index 58bfa1e..b5df588 100755
--- a/includes/inc_stream.php
+++ b/includes/inc_stream.php
@@ -51,10 +51,11 @@ if (infostreamexist())
case 1:
print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$realname}\" />";
break;
- default:
case 2:
+ case 3:
print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$url}\" />";
break;
+
}
print " </form>\r\n";
}
@@ -76,12 +77,17 @@ else
case 2:
list($title, $desc, $realname) = vdrgetinfostream($name, 0);
break;
+ // Media
case 3:
+ $realname = $name;
+ $title = "";
+ $desc = "";
+ break;
default:
$realname = "";
$title = "";
$desc = "";
- $channame = $name;
+ $channame = "";
}
print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n";
@@ -148,9 +154,9 @@ else
print " <input name =\"url\" type=\"hidden\" id=\"url\" value=\"{$vdrstreamdev}{$channum}\" />\r\n";
break;
case 2:
- default:
+ case 3:
print " <input name =\"url\" type=\"hidden\" id=\"url\" value=\"{$name}\" />\r\n";
- break;
+ break;
}
print " </form>";
}
@@ -168,6 +174,11 @@ else
print " <input name =\"action\" type=\"hidden\" id=\"action\" value=\"recordings\" />";
print " <input name =\"dir\"type=\"hidden\" id=\"dir\" value=\"{$dir}\" />";
break;
+ case 3:
+ $dir = dirname($name);
+ print " <input name =\"action\" type=\"hidden\" id=\"action\" value=\"media\" />";
+ print " <input name =\"dir\"type=\"hidden\" id=\"dir\" value=\"{$dir}\" />";
+ break;
}
print " </form>\r\n";