Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ def select_zap_channels(country, zipcode, device, lineup, headend, add_all=False

gridtime = (int(time.mktime(time.strptime(str(datetime.datetime.now().replace(microsecond=0,second=0,minute=0)), '%Y-%m-%d %H:%M:%S'))))

url = 'http://tvlistings.gracenote.com/api/grid?lineupId='+lineup+'&timespan=3&headendId=' + headend + '&country=' + country + '&device=' + device + '&postalCode=' + zipcode + '&time=' + str(gridtime) + '&pref=-&userId=-'
url = 'https://tvlistings.gracenote.com/api/grid?lineupId='+lineup+'&timespan=3&headendId=' + headend + '&country=' + country + '&device=' + device + '&postalCode=' + zipcode + '&time=' + str(gridtime) + '&pref=-&userId=-'
#data = xbmcvfs.File(url,'r').read()
data = requests.get(url).content
j = json.loads(data)
Expand Down Expand Up @@ -1730,7 +1730,7 @@ def zap_country(country,i):
#label = "%s / %s / %s / %s" % (name,device,lineup,headend)
label = name

url = 'http://tvlistings.gracenote.com/api/grid?lineupId='+lineup+'&timespan=3&headendId=' + headend + '&country=' + country + '&device=' + device + '&postalCode=' + zipcode + '&pref=-&userId=-'
url = 'https://tvlistings.gracenote.com/api/grid?lineupId='+lineup+'&timespan=3&headendId=' + headend + '&country=' + country + '&device=' + device + '&postalCode=' + zipcode + '&pref=-&userId=-'

context_items = []
if url not in zaps:
Expand Down Expand Up @@ -1760,7 +1760,7 @@ def zap_country(country,i):
#label = "%s / %s / %s / %s" % (name,device,lineup,headend)
label = name

url = 'http://tvlistings.gracenote.com/api/grid?lineupId='+lineup+'&timespan=3&headendId=' + headend + '&country=' + country + '&device=' + device + '&postalCode=' + zipcode + '&pref=-&userId=-'
url = 'https://tvlistings.gracenote.com/api/grid?lineupId='+lineup+'&timespan=3&headendId=' + headend + '&country=' + country + '&device=' + device + '&postalCode=' + zipcode + '&pref=-&userId=-'

context_items = []
if url not in zaps:
Expand Down Expand Up @@ -2215,4 +2215,4 @@ def index():
plugin.set_view_mode(view_mode)
#plugin.set_view_mode(51)
#pass
#plugin.set_content("files")
#plugin.set_content("files")