Skip to content

Commit

Permalink
🐛 Fix attributeerror with randomised lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Aug 4, 2024
1 parent 7b23b0d commit 7c33222
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/tmdbhelper/lib/items/randomdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def random_from_list(i, remove_next_page=True):
self.plugin_category = f'{item.get("label")}'
self.parent_params = itemparams

del self._tmdb_cache_only # Avoid inheriting cache settings from seed item
try:
del self._tmdb_cache_only # Avoid inheriting cache settings from seed item
except AttributeError:
pass

return get_container(itemparams['info']).get_items(self, **itemparams)

0 comments on commit 7c33222

Please sign in to comment.