Skip to content

Commit 020d6d9

Browse files
authored
Update default.py
Changed website from tvlistings.zap2it.com to tvlistings.gracenote.com
1 parent 22295d9 commit 020d6d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

default.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def create_cList():
109109
if channelEnabled == True:
110110
tvhClist.append(ch['number'])
111111
lineupcode = xbmcaddon.Addon().getSetting('lineupcode')
112-
url = 'http://tvlistings.zap2it.com/api/grid?lineupId=&timespan=3&headendId=' + lineupcode + '&country=' + country + '&device=' + device + '&postalCode=' + zipcode + '&time=' + str(gridtime) + '&pref=-&userId=-'
112+
url = 'https://tvlistings.gracenote.com/api/grid?lineupId=&timespan=3&headendId=' + lineupcode + '&country=' + country + '&device=' + device + '&postalCode=' + zipcode + '&time=' + str(gridtime) + '&pref=-&userId=-'
113113
content = urllib.request.urlopen(url).read()
114114
contentDict = json.loads(content)
115115
stationDict = {}
@@ -192,13 +192,13 @@ def location():
192192
xbmcaddon.Addon().setSetting(id='zipcode', value=zipcodeNew)
193193
if countryNew == 0:
194194
country = 'USA'
195-
url = 'https://tvlistings.zap2it.com/gapzap_webapi/api/Providers/getPostalCodeProviders/USA/' + zipcodeNew + '/gapzap/en'
195+
url = 'https://tvlistings.gracenote.com/gapzap_webapi/api/Providers/getPostalCodeProviders/USA/' + zipcodeNew + '/gapzap/en'
196196
lineupsN = ['AVAILABLE LINEUPS', 'TIMEZONE - Eastern', 'TIMEZONE - Central', 'TIMEZONE - Mountain', 'TIMEZONE - Pacific', 'TIMEZONE - Alaskan', 'TIMEZONE - Hawaiian']
197197
lineupsC = ['NONE', 'DFLTE', 'DFLTC', 'DFLTM', 'DFLTP', 'DFLTA', 'DFLTH']
198198
deviceX = ['-', '-', '-', '-', '-', '-', '-']
199199
if countryNew == 1:
200200
country = 'CAN'
201-
url = 'https://tvlistings.zap2it.com/gapzap_webapi/api/Providers/getPostalCodeProviders/CAN/' + zipcodeNew + '/gapzap/en'
201+
url = 'https://tvlistings.gracenote.com/gapzap_webapi/api/Providers/getPostalCodeProviders/CAN/' + zipcodeNew + '/gapzap/en'
202202
lineupsN = ['AVAILABLE LINEUPS', 'TIMEZONE - Eastern', 'TIMEZONE - Central', 'TIMEZONE - Mountain', 'TIMEZONE - Pacific']
203203
lineupsC = ['NONE', 'DFLTEC', 'DFLTCC', 'DFLTMC', 'DFLTPC']
204204
deviceX = ['-', '-', '-', '-', '-']
@@ -318,4 +318,4 @@ def index():
318318
xbmc.executebuiltin('Container.Refresh')
319319
except:
320320
dialog.ok('No Lineup Configured!', '', 'Please configure your zipcode and lineup under Change Current Location.')
321-
plugin.run()
321+
plugin.run()

0 commit comments

Comments
 (0)