Update 1.2.2
This commit is contained in:
		
							parent
							
								
									ea2c5c1057
								
							
						
					
					
						commit
						c6796297cc
					
				
							
								
								
									
										874
									
								
								epg2xml-web.php
									
									
									
									
									
								
							
							
						
						
									
										874
									
								
								epg2xml-web.php
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -3,9 +3,9 @@
 | 
			
		||||
    "###_COMMENT_###" : "epg 정보를 가져오는 설정 파일",
 | 
			
		||||
    "###_COMMENT_###" : "사용하는 ISP 선택 (ALL, KT, LG, SK)",
 | 
			
		||||
    "MyISP": "ALL",
 | 
			
		||||
    "###_COMMENT_###" : "### # My Channel Enabled:1 로 하고자 하는 채널 ID ###",
 | 
			
		||||
    "###_COMMENT_###" : "### # My Channel EPG 정보 가져오는 2017-09-01채널 ID ###",
 | 
			
		||||
    "###_COMMENT_###" : "1, 2, 3, 4",
 | 
			
		||||
     "MyChannels" : "60, 110, 111, 122, 164",
 | 
			
		||||
    "MyChannels" : "60, 110, 111, 122, 164",
 | 
			
		||||
    "###_COMMENT_###" : "output 셋팅은 (d, o, s) 셋중에 하나로 선택한다",
 | 
			
		||||
    "###_COMMENT_###" : " d - EPG 정보 화면 출력",
 | 
			
		||||
    "###_COMMENT_###" : " o - EPG 정보 파일로 저정",
 | 
			
		||||
@ -15,12 +15,12 @@
 | 
			
		||||
    "default_icon_url": "",
 | 
			
		||||
    "###_COMMENT_###" : "### 제목에 재방송 정보 출력 ###",
 | 
			
		||||
    "default_rebroadcast": "y",
 | 
			
		||||
    "###_COMMENT_###" : "#### 제목에 회차정보 출력 ###",
 | 
			
		||||
    "###_COMMENT_###" : "#### 제목에 회차정보 출력 ###",     
 | 
			
		||||
    "default_episode" : "y",
 | 
			
		||||
    "###_COMMENT_###" : "### EPG 정보 추가 출력 ###",
 | 
			
		||||
    "default_verbose" : "y",
 | 
			
		||||
    "###_COMMENT_###" : "### epg 데이터 가져오는 기간으로 1에서 2까지 설정가능 ###",
 | 
			
		||||
    "default_fetch_limit" : "2",
 | 
			
		||||
    "default_fetch_limit" : "7",
 | 
			
		||||
    "###_COMMENT_###" : "### epg 저장시 기본 저장 이름 (ex: /home/tvheadend/xmltv.xml) ###",
 | 
			
		||||
    "default_xml_file" : "xmltv.xml",
 | 
			
		||||
    "###_COMMENT_###" : "### # External XMLTV 사용시 기본 소켓 이름 (ex: /home/tvheadend/xmltv.sock) ###",
 | 
			
		||||
 | 
			
		||||
@ -1,8 +1,7 @@
 | 
			
		||||
#!/usr/bin/env php
 | 
			
		||||
<?php
 | 
			
		||||
@date_default_timezone_set('Asia/Seoul');
 | 
			
		||||
//error_reporting(E_ALL ^ E_NOTICE);
 | 
			
		||||
error_reporting(E_ALL);
 | 
			
		||||
error_reporting(E_ALL ^ E_NOTICE);
 | 
			
		||||
define("VERSION", "1.2.2");
 | 
			
		||||
 | 
			
		||||
$debug = False;
 | 
			
		||||
@ -189,7 +188,6 @@ else :
 | 
			
		||||
                else :
 | 
			
		||||
                    if(in_array($default_fetch_limit, array(1, 2, 3, 4, 5, 6, 7))) :
 | 
			
		||||
                        $period = $default_fetch_limit;
 | 
			
		||||
                        //$period = $period > 2 ? 2 : $period;
 | 
			
		||||
                        
 | 
			
		||||
                    else :
 | 
			
		||||
                        printError("default_fetch_limit는 1, 2, 3, 4, 5, 6, 7만 가능합니다.");
 | 
			
		||||
@ -379,7 +377,6 @@ function getEPG() {
 | 
			
		||||
        $ChannelSource =  $ChannelInfo[2];
 | 
			
		||||
        $ChannelServiceId =  $ChannelInfo[3];
 | 
			
		||||
        if($GLOBALS['debug']) printLog($ChannelName.' 채널 EPG 데이터를 가져오고 있습니다');
 | 
			
		||||
        
 | 
			
		||||
        if($ChannelSource == 'EPG') :
 | 
			
		||||
            GetEPGFromEPG($ChannelInfo);
 | 
			
		||||
        elseif($ChannelSource == 'KT') :
 | 
			
		||||
@ -1479,6 +1476,7 @@ function GetEPGFromArirang($ChannelInfo) {
 | 
			
		||||
        }
 | 
			
		||||
    endforeach;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Zip epginfo
 | 
			
		||||
function epgzip($epginfo) {
 | 
			
		||||
    #ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
 | 
			
		||||
@ -1632,6 +1630,7 @@ function getWeb($url, $params, $method) {
 | 
			
		||||
function printLog($string) {
 | 
			
		||||
    fwrite(STDERR, $string."\n");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function printError($string) {
 | 
			
		||||
    fwrite(STDERR, "Error : ".$string."\n");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1091,7 +1091,6 @@ if default_fetch_limit :
 | 
			
		||||
        sys.exit()
 | 
			
		||||
    else :
 | 
			
		||||
        period = int(default_fetch_limit)
 | 
			
		||||
        #if period > 2 : period = 2
 | 
			
		||||
else :
 | 
			
		||||
    printError("epg2xml.json 파일의 default_fetch_limit항목이 없습니다.");
 | 
			
		||||
    sys.exit()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user