Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Fix watched indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts committed Feb 1, 2021
1 parent c412649 commit 6565b4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/lib/modules/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def generate_titleitem(item):
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)

Expand Down Expand Up @@ -119,7 +119,7 @@ def generate_titleitem(item):
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
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/viervijfzes/epg.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_broadcast(self, channel, timestamp):

# 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
Expand Down

0 comments on commit 6565b4e

Please sign in to comment.