projects
/
lib.XML_Tv
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93df70e
)
Tv.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 30 Aug 2011 13:27:41 +0000
(21:27 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 30 Aug 2011 13:27:41 +0000
(21:27 +0800)
Tv.php
patch
|
blob
|
history
diff --git
a/Tv.php
b/Tv.php
index
5e2b664
..
0985641
100644
(file)
--- a/
Tv.php
+++ b/
Tv.php
@@
-210,7
+210,14
@@
class XML_Tv
function parseatv($data,$colnames, $day)
{
-
+ // if it's a day row..
+
+ if (preg_match('/<div/', trim($data)) {
+ preg_match('/<BR>([0-9]{4}-[0-9]{2}-[0-9]{2})\s/i', $odata, $matches);
+ print_r($matches);
+ exit;
+
+ }
$rows = preg_split('/<tr[^>]*>/i', $data);
$this->debug(print_r($rows,true));
return;