Fix watched indicator

This commit is contained in:
Michaël Arnauts 2021-02-01 13:44:39 +01:00
parent c41264965d
commit 6565b4e0df
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ class Menu:
title = item.title
return TitleItem(title=title,
path=kodiutils.url_for('show_catalog_program', channel=item.channel, program=item.path),
path=kodiutils.url_for('show_catalog_program', program=item.path),
art_dict=art_dict,
info_dict=info_dict)
@ -119,7 +119,7 @@ class Menu:
from urllib import quote
# We don't have an UUID, and first need to fetch the video information from the page
path = kodiutils.url_for('play_from_page', channel=item.channel, page=quote(item.path, safe=''))
path = kodiutils.url_for('play_from_page', page=quote(item.path, safe=''))
else:
# We have an UUID and can play this item directly
# This is not preferred since we will lack metadata

View File

@ -166,7 +166,7 @@ class EpgApi:
# Find a matching broadcast
for broadcast in programs:
if timestamp <= broadcast.start < (broadcast.start + timedelta(seconds=broadcast.duration)):
if broadcast.start <= timestamp < (broadcast.start + timedelta(seconds=broadcast.duration)):
return broadcast
return None