diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-26 13:33:58 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-26 13:33:58 +0100 |
commit | a1ef98c9e01b067876d2b209ecc64b582978b0ae (patch) | |
tree | 0383b5c8c2015af05f1fa2ce4e024efa0ccf7165 /bin | |
parent | a3ff985652cb76209c347ecb9c852d114c29addb (diff) | |
download | istreamdev-a1ef98c9e01b067876d2b209ecc64b582978b0ae.tar.gz istreamdev-a1ef98c9e01b067876d2b209ecc64b582978b0ae.tar.bz2 |
epg wip
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vdr.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/vdr.php b/bin/vdr.php index 1701ed4..f89646d 100755 --- a/bin/vdr.php +++ b/bin/vdr.php @@ -387,7 +387,7 @@ function vdrgetfullepgat($channel, $at, $programs) // Close chan if(ereg("^c", $epgin[$i])) { - if ($programscounter && $validchan) + if ($validchan) { // Add new entry in the right category $chancat = vdrgetchancat($chanentry['name']); @@ -437,7 +437,8 @@ function vdrgetfullepgat($channel, $at, $programs) $validepg = 1; break; case "day": - if (($endtime > $at) && ($starttime < ($at + 3600*24))) + $dayendtime = $at - ($at % (3600*24)) + (3600*24); + if (($endtime > $at) && ($starttime < $dayendtime)) $validepg = 1; else $validepg = 0; @@ -524,6 +525,11 @@ function vdrgetepg($channel, $time, $day, $programs, $extended) case "day": // Get all day $requesteddate = $currentdate - ($currentdate % (3600*24)) + ($day * (3600*24)) - 3600; + if ($time != "") + { + $requestedtime = ((int) substr($time, 0, 2) * 3600) + ((int) substr($time, 2) * 60); + $requesteddate += $requestedtime; + } break; default: |