[13] fix plex_all cache

pull/790/head
meisnate12 3 years ago
parent 185bda010f
commit e357c45b96

@ -1 +1 @@
1.16.0-develop12 1.16.0-develop13

@ -456,9 +456,9 @@ class Plex(Library):
return self.PlexServer.fetchItem(data) return self.PlexServer.fetchItem(data)
def get_all(self, collection_level=None, load=False): def get_all(self, collection_level=None, load=False):
if load and not collection_level: if load and collection_level in [None, "show", "artist", "movie"]:
self._all_items = [] self._all_items = []
if self._all_items and not collection_level: if self._all_items and collection_level in [None, "show", "artist", "movie"]:
return self._all_items return self._all_items
collection_type = collection_level if collection_level else self.Plex.TYPE collection_type = collection_level if collection_level else self.Plex.TYPE
if not collection_level: if not collection_level:

Loading…
Cancel
Save