Tv.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 30 Aug 2011 13:27:41 +0000 (21:27 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 30 Aug 2011 13:27:41 +0000 (21:27 +0800)
Tv.php

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;