diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/session.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/session.php b/bin/session.php index e575a5b..bbc175a 100755 --- a/bin/session.php +++ b/bin/session.php @@ -127,10 +127,19 @@ function sessiongetinfo($session) switch ($type) { case 'tv': - $info['channel'] = $channame; + $info['name'] = $channame; + $info['thumbwidth'] = 80; + $info['thumbheight'] = 80; + $channum = vdrgetchannum($channame); + list($info['now_time'], $info['now_title'], $info['now_desc']) = vdrgetchanepg($channum, 1); + list($info['next_time'], $info['next_title'], $info['next_desc']) = vdrgetchanepg($channum, 0); + break; case 'rec': $info['channel'] = $channame; + $info['thumbwidth'] = 80; + $info['thumbheight'] = 80; + list($channame, $info['name'], $info['desc']) = vdrgetrecinfo($url); break; case 'vid': break; |