Skip to content

Commit

Permalink
Disable creating offscreen listitems
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Dec 25, 2022
1 parent 7b578d9 commit 909ceab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/lib/monitor/itemdetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def get_builtartwork(self):

def get_builtitem(self):
if not self._itemdetails:
return ListItem().get_listitem()
return ListItem().get_listitem(offscreen=False)

def set_time_properties(duration):
minutes = duration // 60 % 60
Expand All @@ -217,4 +217,4 @@ def set_date_properties(premiered):

li = ListItem(**self._itemdetails.listitem)
li.art = self.get_builtartwork()
return li.get_listitem()
return li.get_listitem(offscreen=False)
2 changes: 1 addition & 1 deletion resources/lib/monitor/listitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def clear_on_scroll(self):
def on_exit(self, keep_tv_artwork=False, is_done=True):
if self._listcontainer:
kodi_log(f'SM: on_exit add_item_listcontainer', 1)
return self.add_item_listcontainer(ListItem().get_listitem())
return self.add_item_listcontainer(ListItem().get_listitem(offscreen=False))
try:
ignore_keys = SETMAIN_ARTWORK if keep_tv_artwork and self._item._dbtype in ['episodes', 'seasons'] else None
except AttributeError:
Expand Down

0 comments on commit 909ceab

Please sign in to comment.