diff --git a/README.md b/README.md index 65fc5b4..993ca93 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ https://github.com/wonipapa/epg2xml/wiki/FAQ - SKB 함수 수정 - SKB 함수 수정(p1) - SKY 함수 수정(p2) + - HCN 함수 수정(p3) ### Version 1.2.4 - ISCS 함수 수정 - SKB 함수 수정(p1) diff --git a/epg2xml-web.php b/epg2xml-web.php index 29f1db9..d3efbea 100644 --- a/epg2xml-web.php +++ b/epg2xml-web.php @@ -3,9 +3,9 @@ @date_default_timezone_set('Asia/Seoul'); error_reporting(E_ALL ^ E_NOTICE); @set_time_limit(0); -define("VERSION", "1.2.5p2"); +define("VERSION", "1.2.5p3"); $debug = False; -$ua = "'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36'"; +$ua = "'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116'"; $timeout = 5; define("CHANNEL_ERROR", " 존재하지 않는 채널입니다."); define("CONTENT_ERROR ", " EPG 정보가 없습니다."); @@ -1800,6 +1800,7 @@ function getWeb($url, $params, $method) { curl_setopt($ch, CURLOPT_HEADER, False); curl_setopt($ch, CURLOPT_FAILONERROR, True); curl_setopt($ch, CURLOPT_USERAGENT, $GLOBALS['ua']); + $response = curl_exec($ch); if(curl_error($ch) && $GLOBALS['debug']) printError($url." ".curl_error($ch)); curl_close($ch); diff --git a/epg2xml.py b/epg2xml.py index ed72faf..a39bb28 100644 --- a/epg2xml.py +++ b/epg2xml.py @@ -44,10 +44,10 @@ if not sys.version_info[:2] == (2, 7): sys.exit() # Set variable -__version__ = '1.2.5p2' +__version__ = '1.2.5p3' debug = False today = datetime.date.today() -ua = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36', 'accept': '*/*'} +ua = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116', 'accept': '*/*'} timeout = 5 htmlparser = 'lxml' CHANNEL_ERROR = ' 존재하지 않는 채널입니다.'