summaryrefslogtreecommitdiff
path: root/bin/vdr.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 19:06:13 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 19:06:13 +0100
commit0288e7e23ea7aea31727780b6cfebb0baab87abc (patch)
treeae85dc2ea0ec2ced6ec4f26691212ce16f49980a /bin/vdr.php
parent6d3e8f33022129106ace66b97407bd66c02205c4 (diff)
downloadistreamdev-0288e7e23ea7aea31727780b6cfebb0baab87abc.tar.gz
istreamdev-0288e7e23ea7aea31727780b6cfebb0baab87abc.tar.bz2
Fixed subdirs browing and rec info
Diffstat (limited to 'bin/vdr.php')
-rwxr-xr-xbin/vdr.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/vdr.php b/bin/vdr.php
index 82960dc..760e4f6 100755
--- a/bin/vdr.php
+++ b/bin/vdr.php
@@ -61,7 +61,6 @@ function vdrgetcategories()
if (!is_utf8($curcat))
$curcat = utf8_encode($curcat);
-// $curcat = rawurlencode($curcat);
}
else if ($line[0] != "")
$curcatchancount++;
@@ -179,8 +178,6 @@ function vdrgetchannels($category, $now)
if (!is_utf8($tmpchan['name']))
$tmpchan['name'] = utf8_encode($tmpchan['name']);
-// $tmpchan['name'] = rawurlencode($tmpchan['name']);
-
$chanlist[] = $tmpchan;
}
@@ -308,6 +305,14 @@ function vdrgetrecinfo($rec)
$epgtitle=substr($allepg[$i], 2);
else if(ereg("^D", $allepg[$i]))
$epgdesc=substr($allepg[$i], 2);
+ else if(ereg("^E ", $allepg[$i]))
+ {
+ $time = substr($allepg[$i], 2);
+ $timearray = explode(" ", $time);
+
+ $recorded = date('Y\/m\/d \a\t H\hi', $timearray[1]);
+ }
+
}
// Convert if needed
@@ -316,7 +321,7 @@ function vdrgetrecinfo($rec)
if (!is_utf8($epgdesc))
$epgdesc = utf8_encode($epgdesc);
- return array($channame, $epgtitle, $epgdesc);
+ return array($channame, $epgtitle, $epgdesc, $recorded);
}