Skip to content

Commit

Permalink
Merge pull request add-ons#35 from dagwieers/small-fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
piejanssens committed Jan 30, 2021
2 parents 3b4950c + 6067c39 commit 8d8f6d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/lib/redbull.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RedBullTV():
REDBULL_RESOURCES = 'https://resources.redbull.tv/'

def __init__(self):
self.token = self.get_json(self.REDBULL_API + 'session?category=smart_tv&os_family=android', use_token=False)['token']
self.token = self.get_json(self.REDBULL_API + 'session?category=smart_tv&os_family=android', use_token=False).get('token')

def get_play_url(self, uid):
return self.REDBULL_STREAMS + uid + '/' + self.token + '/playlist.m3u8'
Expand Down Expand Up @@ -78,7 +78,7 @@ def get_iptv_epg(self):
continue

if not regexp.match(item.get('end_time', '')):
xbmc.log("Invalid start_time '{end_time}' for Red Bull item ID '{id}'".format(**item))
xbmc.log("Invalid end_time '{end_time}' for Red Bull item ID '{id}'".format(**item))
continue

epg['redbulltv'].append(dict(
Expand Down

0 comments on commit 8d8f6d2

Please sign in to comment.