Skip to content

Commit c8b64b8

Browse files
committed
url fix for location
1 parent f6afb1a commit c8b64b8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

addon.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="script.module.zap2epg" name="zap2epg" version="0.3.0" provider-name="edit4ever">
2+
<addon id="script.module.zap2epg" name="zap2epg" version="0.3.2" provider-name="edit4ever">
33
<requires>
44
<import addon="xbmc.python" version="2.7.13"/>
55
<import addon="script.module.dateutil" version="2.4.2"/>
@@ -29,6 +29,7 @@ Setup:
2929
<email></email>
3030
<source></source>
3131
<news>
32+
v0.3.2 - fixes url change for location
3233
v0.3.0 - adds generic timezone lineups and station/channels icons | removes old episode data from cache (2017-11-07)
3334
v0.2.1 - fix for location name and JSON file errors (2017-11-02)
3435
v0.2.0 - modified for new zap2it guide data (2017-10-27)

default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ def location():
110110
zipcodeNew =re.sub(' ', '', zipcodeNew)
111111
xbmcaddon.Addon().setSetting(id='zipcode', value=zipcodeNew)
112112
if countryNew == 0:
113-
url = 'https://tvlistings.gracenote.com/gapzap_webapi/api/Providers/getPostalCodeProviders/USA/' + zipcodeNew
113+
url = 'https://tvlistings.gracenote.com/gapzap_webapi/api/Providers/getPostalCodeProviders/USA/' + zipcodeNew + '/gapzap'
114114
lineupsN = ['AVAILABLE LINEUPS', 'TIMEZONE - Eastern', 'TIMEZONE - Central', 'TIMEZONE - Mountain', 'TIMEZONE - Pacific', 'TIMEZONE - Alaskan', 'TIMEZONE - Hawaiian']
115115
lineupsC = ['NONE', 'DFLTE', 'DFLTC', 'DFLTM', 'DFLTP', 'DFLTA', 'DFLTH']
116116
if countryNew == 1:
117-
url = 'https://tvlistings.gracenote.com/gapzap_webapi/api/Providers/getPostalCodeProviders/CAN/' + zipcodeNew
117+
url = 'https://tvlistings.gracenote.com/gapzap_webapi/api/Providers/getPostalCodeProviders/CAN/' + zipcodeNew + '/gapzap'
118118
lineupsN = ['AVAILABLE LINEUPS', 'TIMEZONE - Eastern', 'TIMEZONE - Central', 'TIMEZONE - Mountain', 'TIMEZONE - Pacific']
119119
lineupsC = ['NONE', 'DFLTEC', 'DFLTCC', 'DFLTMC', 'DFLTPC']
120120
content = urllib2.urlopen(url).read()

0 commit comments

Comments
 (0)