From 6004ead922e37a67b4342f659d7eafd1533583ba Mon Sep 17 00:00:00 2001 From: wonipapa Date: Mon, 18 Sep 2017 09:37:50 +0900 Subject: [PATCH] Update 1.2.2p3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HCN 함수 수정 --- epg2xml-function.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/epg2xml-function.php b/epg2xml-function.php index b556ece..8ed0a8c 100644 --- a/epg2xml-function.php +++ b/epg2xml-function.php @@ -729,7 +729,7 @@ function GetEPGFromHcn($ChannelInfo) { libxml_use_internal_errors(True); if($dom->loadHTML($response)): $xpath = new DomXPath($dom); - $query = "//li"; + $query = "//li[@class!='noData']"; $rows = $xpath->query($query); foreach($rows as $row) : $startTime = $endTime = $programName = $subprogramName = $desc = $actors = $producers = $category = $episode = ""; @@ -738,8 +738,6 @@ function GetEPGFromHcn($ChannelInfo) { $startTime = trim($xpath->query("span[@class='progTime']", $row)->item(0)->nodeValue) ?: ""; $startTime = date("YmdHis", strtotime($day." ".$startTime)); $programName = trim($xpath->query("span[@class='progTitle']", $row)->item(0)->nodeValue) ?: ""; - //$category = trim($cells->item(2)->nodeValue) ?: ""; - //$category = preg_replace('/\(.*\)/', '', $category); $images = $row->getElementsByTagName('img'); foreach($images as $image): preg_match('/re\.png/', $image->getAttribute('src'), $rebroad);