From 6ef5b2125a90df3c219d0a49d7506e0b02a498c0 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 1 Feb 2022 00:36:51 -0500 Subject: [PATCH] fix item reload --- VERSION | 2 +- modules/meta.py | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/VERSION b/VERSION index 37ff7f22..07f05721 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.15.1-develop30 +1.15.1-develop31 diff --git a/modules/meta.py b/modules/meta.py index 72808176..f85dedca 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -283,15 +283,14 @@ class MetadataFile(DataFile): if not all_items: all_items = library.get_all() for i, item in enumerate(all_items, 1): - item.reload(checkFiles=False, includeAllConcerts=False, includeBandwidths=False, includeChapters=False, - includeChildren=False, includeConcerts=False, includeExternalMedia=False, includeExtras=False, - includeFields=False, includeGeolocation=False, includeLoudnessRamps=False, includeMarkers=False, - includeOnDeck=False, includePopularLeaves=False, includeRelated=False, includeRelatedCount=0, - includeReviews=False, includeStations=False) - for actor in item.actors[:actor_depth]: - if actor.id not in people: - people[actor.id] = {"name": actor.tag, "count": 0} - people[actor.id]["count"] += 1 + try: + self.library.reload(item) + for actor in item.actors[:actor_depth]: + if actor.id not in people: + people[actor.id] = {"name": actor.tag, "count": 0} + people[actor.id]["count"] += 1 + except Failed as e: + logger.error(f"Plex Error: {e}") roles = [data for _, data in people.items()] roles.sort(key=operator.itemgetter('count'), reverse=True) for role in roles: