@@ -83,15 +83,15 @@ def mainRun(userdata):
8383 useHex = 0
8484
8585 for setting in settingsDict :
86- if setting == 'slist' : #station list from zap2it website i.e. 100105
86+ if setting == 'slist' : #station list from gracenote website i.e. 100105
8787 stationList = settingsDict [setting ]
8888 if setting == 'zipcode' : #zipcode
8989 zipcode = settingsDict [setting ]
9090 if setting == 'lineup' : #Type of lineup to receive from the given zipcode. i.e. cable or OTA
9191 lineup = settingsDict [setting ]
9292 if setting == 'lineupcode' : #Lineup Code [string default==lineupid]
9393 lineupcode = settingsDict [setting ]
94- if setting == 'device' : #Device name to be sent to zap2it website
94+ if setting == 'device' : #Device name to be sent to gracenote website
9595 device = settingsDict [setting ]
9696 if setting == 'days' : #Number of days to download data (1 to 14)
9797 days = settingsDict [setting ]
@@ -242,7 +242,7 @@ def printHeader(fh, enc): #This is the header for the XMLTV file
242242 logging .info ('Creating xmltv.xml file...' )
243243 fh .write (f'<?xml version=\" 1.0\" encoding=\" { enc } \" ?>\n ' )
244244 #fh.write("<!DOCTYPE tv SYSTEM \"xmltv.dtd\">\n\n")
245- fh .write ("<tv source-info-url=\" http://tvschedule.zap2it .com/\" source-info-name=\" zap2it .com\" >\n " )
245+ fh .write ("<tv source-info-url=\" http://tvschedule.gracenote .com/\" source-info-name=\" gracenote .com\" >\n " )
246246
247247 def printFooter (fh ): #This is the footer for the XMLTV file
248248 fh .write ("</tv>" )
@@ -376,7 +376,7 @@ def printEpisodes(fh): #Take the data collected in edict variab
376376 except Exception as e :
377377 logging .exception ('Exception: printEpisodes' )
378378
379- def xmltv (): # Routine called after the data has been collected from zap2it website
379+ def xmltv (): # Routine called after the data has been collected from gracenote website
380380 try :
381381 enc = 'UTF-8'
382382 outFile = os .path .join (userdata , 'xmltv.xml' )
@@ -389,7 +389,7 @@ def xmltv(): # Routine called after the data has been collected from
389389 except Exception as e :
390390 logging .exception ('Exception: xmltv' )
391391
392- def parseStations (content ): #Routine downloads the necessary files from zap2it website.
392+ def parseStations (content ): #Routine downloads the necessary files from gracenote website.
393393 try :
394394 ch_guide = json .loads (content )
395395 for station in ch_guide ['channels' ]:
@@ -533,7 +533,7 @@ def parseXdetails():
533533 retry = 3
534534 while retry > 0 :
535535 logging .info ('Downloading details data for: %s' , EPseries )
536- url = 'https://tvlistings.zap2it .com/api/program/overviewDetails'
536+ url = 'https://tvlistings.gracenote .com/api/program/overviewDetails'
537537 data = 'programSeriesID=' + EPseries
538538 data_encode = data .encode ('utf-8' )
539539 try :
@@ -759,7 +759,7 @@ def connect_to_TVH():
759759 if not os .path .exists (fileDir ):
760760 try :
761761 logging .info ('Downloading guide data for: %s' , str (gridtime ))
762- url = f"http ://tvlistings.zap2it .com/api/grid?lineupId=×pan=3&headendId={ lineupcode } &country={ country } &device={ device } &postalCode={ zipcode } &time={ str (gridtime )} &pref=-&userId=-"
762+ url = f"https ://tvlistings.gracenote .com/api/grid?lineupId=×pan=3&headendId={ lineupcode } &country={ country } &device={ device } &postalCode={ zipcode } &time={ str (gridtime )} &pref=-&userId=-"
763763 saveContent = urllib .request .urlopen (url ).read ()
764764 savepage (fileDir , saveContent )
765765 except :
0 commit comments