ISCS 함수까지 체크
This commit is contained in:
parent
f40c20e977
commit
4b62f0140d
20
epg2xml.php
20
epg2xml.php
@ -914,15 +914,15 @@ function GetEPGFromNaver($ChannelInfo) {
|
|||||||
endforeach;
|
endforeach;
|
||||||
endfor;
|
endfor;
|
||||||
endfor;
|
endfor;
|
||||||
|
endif;
|
||||||
|
} catch(Exception $e) {
|
||||||
|
if($GLOBALS['debug']) printError($e->getMessage());
|
||||||
|
}
|
||||||
|
endif;
|
||||||
|
} catch (Exception $e) {
|
||||||
|
if($GLOBALS['debug']) printError($e->getMessage());
|
||||||
|
}
|
||||||
epgzip($epginfo);
|
epgzip($epginfo);
|
||||||
endif;
|
|
||||||
} catch(Exception $e) {
|
|
||||||
if($GLOBALS['debug']) printError($e->getMessage());
|
|
||||||
}
|
|
||||||
endif;
|
|
||||||
} catch (Exception $e) {
|
|
||||||
if($GLOBALS['debug']) printError($e->getMessage());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get EPG data from Iscs
|
// Get EPG data from Iscs
|
||||||
@ -982,7 +982,6 @@ function GetEPGFromIscs($ChannelInfo) {
|
|||||||
//ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
//ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
||||||
$epginfo[] = array($ChannelId, $startTime, $programName, $subprogramName, $desc, $actors, $producers, $category, $episode, $rebroadcast, $rating);
|
$epginfo[] = array($ChannelId, $startTime, $programName, $subprogramName, $desc, $actors, $producers, $category, $episode, $rebroadcast, $rating);
|
||||||
endforeach;
|
endforeach;
|
||||||
epgzip($epginfo);
|
|
||||||
else :
|
else :
|
||||||
if($GLOBALS['debug']) printError($ChannelName.CONTENT_ERROR);
|
if($GLOBALS['debug']) printError($ChannelName.CONTENT_ERROR);
|
||||||
endif;
|
endif;
|
||||||
@ -995,6 +994,7 @@ function GetEPGFromIscs($ChannelInfo) {
|
|||||||
if($GLOBALS['debug']) printError($e->getMessage());
|
if($GLOBALS['debug']) printError($e->getMessage());
|
||||||
}
|
}
|
||||||
endforeach;
|
endforeach;
|
||||||
|
epgzip($epginfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get EPG data from Hcn
|
// Get EPG data from Hcn
|
||||||
@ -1044,7 +1044,6 @@ function GetEPGFromHcn($ChannelInfo) {
|
|||||||
//ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
//ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
||||||
$epginfo[] = array($ChannelId, $startTime, $programName, $subprogramName, $desc, $actors, $producers, $category, $episode, $rebroadcast, $rating);
|
$epginfo[] = array($ChannelId, $startTime, $programName, $subprogramName, $desc, $actors, $producers, $category, $episode, $rebroadcast, $rating);
|
||||||
endforeach;
|
endforeach;
|
||||||
epgzip($epginfo);
|
|
||||||
else :
|
else :
|
||||||
if($GLOBALS['debug']) printError($ChannelName.CONTENT_ERROR);
|
if($GLOBALS['debug']) printError($ChannelName.CONTENT_ERROR);
|
||||||
endif;
|
endif;
|
||||||
@ -1053,6 +1052,7 @@ function GetEPGFromHcn($ChannelInfo) {
|
|||||||
if($GLOBALS['debug']) printError($e->getMessage());
|
if($GLOBALS['debug']) printError($e->getMessage());
|
||||||
}
|
}
|
||||||
endforeach;
|
endforeach;
|
||||||
|
epgzip($epginfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get EPG data from POOQ
|
// Get EPG data from POOQ
|
||||||
|
@ -495,13 +495,13 @@ def GetEPGFromNaver(ChannelInfo):
|
|||||||
rating = program['grade']
|
rating = program['grade']
|
||||||
#ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
#ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
||||||
epginfo.append([ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating])
|
epginfo.append([ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating])
|
||||||
epgzip(epginfo)
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
if(debug): printError(ChannelName + CONTENT_ERROR)
|
if(debug): printError(ChannelName + CONTENT_ERROR)
|
||||||
else: pass
|
else: pass
|
||||||
except (requests.RequestException) as e:
|
except (requests.RequestException) as e:
|
||||||
if(debug): printError(ChannelName + str(e))
|
if(debug): printError(ChannelName + str(e))
|
||||||
else: pass
|
else: pass
|
||||||
|
epgzip(epginfo)
|
||||||
|
|
||||||
# Get EPG data from ISCS
|
# Get EPG data from ISCS
|
||||||
def GetEPGFromIscs(ChannelInfo):
|
def GetEPGFromIscs(ChannelInfo):
|
||||||
@ -543,13 +543,14 @@ def GetEPGFromIscs(ChannelInfo):
|
|||||||
rebroadcast = True if matches.group(3) else False
|
rebroadcast = True if matches.group(3) else False
|
||||||
#ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
#ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
||||||
epginfo.append([ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating])
|
epginfo.append([ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating])
|
||||||
epgzip(epginfo)
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
if(debug): printError(ChannelName + CONTENT_ERROR)
|
if(debug): printError(ChannelName + CONTENT_ERROR)
|
||||||
else: pass
|
else: pass
|
||||||
except (requests.RequestException) as e:
|
except (requests.RequestException) as e:
|
||||||
if(debug): printError(ChannelName + str(e))
|
if(debug): printError(ChannelName + str(e))
|
||||||
else: pass
|
else: pass
|
||||||
|
epgzip(epginfo)
|
||||||
|
|
||||||
# Get EPG data from HCN
|
# Get EPG data from HCN
|
||||||
def GetEPGFromHcn(ChannelInfo):
|
def GetEPGFromHcn(ChannelInfo):
|
||||||
@ -585,13 +586,13 @@ def GetEPGFromHcn(ChannelInfo):
|
|||||||
if not (grade is None): rating = int(grade.group(1))
|
if not (grade is None): rating = int(grade.group(1))
|
||||||
#ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
#ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating
|
||||||
epginfo.append([ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating])
|
epginfo.append([ChannelId, startTime, programName, subprogramName, desc, actors, producers, category, episode, rebroadcast, rating])
|
||||||
epgzip(epginfo)
|
|
||||||
else:
|
else:
|
||||||
if(debug): printError(ChannelName + CONTENT_ERROR)
|
if(debug): printError(ChannelName + CONTENT_ERROR)
|
||||||
else: pass
|
else: pass
|
||||||
except (requests.exceptions.RequestException) as e:
|
except (requests.exceptions.RequestException) as e:
|
||||||
if(debug): printError(ChannelName + str(e))
|
if(debug): printError(ChannelName + str(e))
|
||||||
else: pass
|
else: pass
|
||||||
|
epgzip(epginfo)
|
||||||
|
|
||||||
# Get EPG data from POOQ
|
# Get EPG data from POOQ
|
||||||
def GetEPGFromPooq(ChannelInfo):
|
def GetEPGFromPooq(ChannelInfo):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user