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