diff --git a/resources/lib/ServiceApi.py b/resources/lib/ServiceApi.py index fc39e99..d7098a0 100644 --- a/resources/lib/ServiceApi.py +++ b/resources/lib/ServiceApi.py @@ -369,7 +369,6 @@ def getSchedule(self): # Returns Live Stream Listing def getLiveStreams(self): showFullSchedule = xbmcaddon.Addon().getSetting('showLiveStreamSchedule') == 'true' - try: xbmcaddon.Addon('inputstream.adaptive') inputstreamAdaptive = True @@ -406,7 +405,7 @@ def getLiveStreams(self): # Render current streams first. for channel in channels: for upcoming in channelresults[channel]['items']: - if not 'upcoming' in channels[channel] or 'upcoming' in channels[channel] and upcoming.get('start') == channels[channel]['upcoming'].get('start'): + if not 'upcoming' in channels[channel] or ('upcoming' in channels[channel] and upcoming.get('start')[0:17] == channels[channel]['upcoming'].get('start')[0:17]): if not 'upcoming' in channels[channel]: channels[channel]['upcoming'] = upcoming description = upcoming.get('description')