diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-17 19:06:13 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-17 19:06:13 +0100 |
commit | 0288e7e23ea7aea31727780b6cfebb0baab87abc (patch) | |
tree | ae85dc2ea0ec2ced6ec4f26691212ce16f49980a /bin/vdr.php | |
parent | 6d3e8f33022129106ace66b97407bd66c02205c4 (diff) | |
download | istreamdev-0288e7e23ea7aea31727780b6cfebb0baab87abc.tar.gz istreamdev-0288e7e23ea7aea31727780b6cfebb0baab87abc.tar.bz2 |
Fixed subdirs browing and rec info
Diffstat (limited to 'bin/vdr.php')
-rwxr-xr-x | bin/vdr.php | 13 |
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); } |