--- application/classes/ebayparser/main.xml 2011-02-20 00:19:12.000000000 +1100 +++ application/classes/ebayparser/main.xml 2012-02-03 11:20:50.000000000 +1100 @@ -3,10 +3,12 @@
+ (.+?)~i => 1 + ~itemprop="price"[^>]*>(.+?) 1 + ~(.+?)~i => 1 ~
]*>(.+?) 1 ~]*>(.+?) 1 ]]> --- application/classes/ebayparser/co_uk.class.php 2011-02-20 00:19:12.000000000 +1100 +++ application/classes/ebayparser/co_uk.class.php 2012-02-03 11:16:18.000000000 +1100 @@ -11,6 +11,7 @@ */ class ebayParser_co_uk extends ebayParser { + /** * Class constructor */ @@ -25,13 +26,12 @@ */ public function getDetailEND( $dt ) { - if (preg_match('~(\d+)-(\w{3})-(\d+)\s+(\d+):(\d+):(\d+)\s+(\w+)~', $dt, $ts)) { + if (preg_match('~(\d+) (\w{3}), (\d{4})(\d{2}):(\d+):(\d+)\s+(\w+)~', $dt, $ts)) { // translate month $ts[2] = array_search(strtoupper($ts[2]), array(1=>'JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC')); - - # _dbg($ts); +# _dbg($ts); // correct year ??? // if ($ts[3] < 100) $ts[3] += 2000; @@ -39,7 +39,7 @@ // local and ebay time zone $tz = array($this->Timezone, $ts[7]); - # _dbg($tz); +# _dbg($tz); foreach ($tz as $t) { if (!isset($this->TimeZones[$t])) { @@ -60,7 +60,7 @@ return $ts; } - return FALSE; + return FALSE; } } // class \ No newline at end of file --- application/classes/ebayparser/co_uk.xml 2011-02-20 00:19:12.000000000 +1100 +++ application/classes/ebayparser/co_uk.xml 2012-02-03 11:26:00.000000000 +1100 @@ -33,11 +33,10 @@ ~Post to:~i => 0 ]]> - (.*?) on eBay.*?~is => 1 + ~(.*)\s*\|\s*eBay.*~i => 1 ]]> @@ -45,7 +44,7 @@ Sep-02-07 11:20:54 PDT (2 --> .*end time\s+(\d+-\w{3}-\d+\s+\d+:\d+:\d+\s+\w+).*~i => 1 + ~(\d+ \w{3}, \d+\d+:\d+:\d+\s+\w+)~i => 1 ]]>