[102] fix autoreload

pull/1328/head
meisnate12 2 years ago
parent 6d07d9eb45
commit af93849e6d

@ -1 +1 @@
1.18.3-develop101
1.18.3-develop102

@ -2618,7 +2618,7 @@ class CollectionBuilder:
tmdb_paths = []
tvdb_paths = []
for item in self.items:
self.library.reload(item)
item = self.library.reload(item)
current_labels = [la.tag for la in self.library.item_labels(item)]
if "item_assets" in self.item_details and self.asset_directory and "Overlay" not in current_labels:
self.library.find_and_upload_assets(item, current_labels, asset_directory=self.asset_directory)

@ -1245,7 +1245,7 @@ class MetadataFile(DataFile):
if not self.library.plex_pass:
logger.warning("Plex Warning: Plex Pass is required to use the Edition Field scanning filenames instead")
for i in item:
self.library.reload(i)
i = self.library.reload(i)
if self.library.plex_pass:
check = i.editionTitle if i.editionTitle else ""
else:

@ -658,7 +658,7 @@ class Plex(Library):
def reload(self, item, force=False):
is_full = False
cached_item = item
if cached_item.ratingKey in self.cached_items:
if not force and cached_item.ratingKey in self.cached_items:
cached_item, is_full = self.cached_items[cached_item.ratingKey]
try:
if not is_full or force:
@ -668,7 +668,7 @@ class Plex(Library):
includeGeolocation=False, includeLoudnessRamps=False, includeMarkers=False,
includeOnDeck=False, includePopularLeaves=False, includeRelated=False,
includeRelatedCount=0, includeReviews=False, includeStations=False)
cached_item._initpath = cached_item._details_key
cached_item._autoReload = False
self.cached_items[cached_item.ratingKey] = (cached_item, True)
return cached_item
except (BadRequest, NotFound) as e:

Loading…
Cancel
Save