diff --git a/plextraktsync/commands/inspect.py b/plextraktsync/commands/inspect.py index 62943cee75..112a6b84b6 100644 --- a/plextraktsync/commands/inspect.py +++ b/plextraktsync/commands/inspect.py @@ -60,7 +60,7 @@ def inspect_media(plex_id: PlexId): print("Parts:") for index, part in enumerate(pm.parts, start=1): - print(f" Part {index}: [link=file://{quote_plus(part.file)}]{escape(part.file)}[/link] {part.size} bytes") + print(f" Part {index} (exists: {part.exists}): [link=file://{quote_plus(part.file)}]{escape(part.file)}[/link] {part.size} bytes") print("Markers:") for marker in pm.markers: diff --git a/plextraktsync/plex/PlexLibraryItem.py b/plextraktsync/plex/PlexLibraryItem.py index 5a28870fcb..96904e0e38 100644 --- a/plextraktsync/plex/PlexLibraryItem.py +++ b/plextraktsync/plex/PlexLibraryItem.py @@ -176,8 +176,10 @@ def markers(self) -> list[Marker]: @property def parts(self) -> list[MediaPart]: - item = self.plex.fetch_item(self.item.ratingKey) - for media in item.item.media: + if self.item.isPartialObject(): + self.item.reload() + + for media in self.item.media: yield from media.parts @property