Update epg2xml.php

This commit is contained in:
wonipapa 2017-04-11 18:20:17 +09:00 committed by GitHub
parent a422a6f8a1
commit 09aa603d93

View File

@ -368,6 +368,7 @@ function GetEPGFromEPG($ChannelInfo) {
); );
$params = http_build_query($params); $params = http_build_query($params);
$url = $url."?".$params; $url = $url."?".$params;
$epginfo = array();
try { try {
$response = @file_get_contents($url, False, $context); $response = @file_get_contents($url, False, $context);
if ($response === False) : if ($response === False) :
@ -476,6 +477,7 @@ function GetEPGFromKT($ChannelInfo) {
); );
$params = http_build_query($params); $params = http_build_query($params);
$url = $url."?".$params; $url = $url."?".$params;
$epginfo = array();
try { try {
$response = @file_get_contents($url, False, $context); $response = @file_get_contents($url, False, $context);
if ($response === False) : if ($response === False) :
@ -527,6 +529,7 @@ function GetEPGFromKT($ChannelInfo) {
'rebroadcast' => $rebroadcast, 'rebroadcast' => $rebroadcast,
'rating' => $rating 'rating' => $rating
); );
writeProgram($programdata); writeProgram($programdata);
endforeach; endforeach;
endif; endif;
@ -555,7 +558,7 @@ function GetEPGFromLG($ChannelInfo) {
); );
$params = http_build_query($params); $params = http_build_query($params);
$url = $url."?".$params; $url = $url."?".$params;
$epginfo = array();
try { try {
$response = @file_get_contents($url, False, $context); $response = @file_get_contents($url, False, $context);
if ($response === False) : if ($response === False) :