From 7fd43371b0d87fb348aac48f8f9aec4a6e95e808 Mon Sep 17 00:00:00 2001 From: s0faking Date: Mon, 7 Aug 2023 13:12:03 +0200 Subject: [PATCH] fixed time check on live stream listing --- resources/lib/ServiceApi.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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')