From e740282ad61fc009006c7a9496e950c0179ea7d2 Mon Sep 17 00:00:00 2001 From: wonipapa Date: Tue, 2 Jan 2018 12:04:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EC=84=9D=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epg2xml-web.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/epg2xml-web.php b/epg2xml-web.php index eb6ce5b..8afe59d 100644 --- a/epg2xml-web.php +++ b/epg2xml-web.php @@ -1021,40 +1021,6 @@ function GetEPGFromIscs($ChannelInfo) { else : if($GLOBALS['debug']) printError($ChannelName.CONTENT_ERROR); endif; - - - - - -/* - print_r($programs); - foreach($programs as $program) : - $startTime = $endTime = $programName = $subprogramName = $desc = $actors = $producers = $category = $episode = ""; - $rebroadcast = False; - $rating = 0; - if(startsWith($program['Time'], '1') || startsWith($program['Time'], '2')) $istomorrow = True; - if(startsWith($program['Time'], '0') && $istomorrow == True) : - $startTime = date("YmdHis", strtotime($day." +1 days"." ".$program['Time'])); - else : - $startTime = date("YmdHis", strtotime($day." ".$program['Time'])); - endif; - $pattern = '/^(.*?)(?:\(([\d,]+)회\))?(?:\((재)\))?$/'; - preg_match($pattern, trim($program['Pg_Name']), $matches); - if ($matches != NULL) : - if(isset($matches[1])) $programName = trim($matches[1]) ?: ""; - if(isset($matches[2])) $episode = $matches[2] ?: ""; - if(isset($matches[3])) $rebroadcast = $matches[3] ? True : False; - endif; - if($program['Rating'] == '모든연령'): - $rating = 0; - else: - $rating = str_replace("세이상","", $program['Rating']); - endif; - //ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating - $epginfo[] = array($ChannelId, $startTime, $programName, $subprogramName, $desc, $actors, $producers, $category, $episode, $rebroadcast, $rating); - usleep(1000); - endforeach; - */ endif; } catch(Exception $e) { if($GLOBALS['debug']) printError($e->getMessage());