From d92112c81ac04ffaf698804638f9a7a0c61a66c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 19 Aug 2024 22:09:16 +0300 Subject: [PATCH 1/2] Reload files before inspect files --- plextraktsync/commands/inspect.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plextraktsync/commands/inspect.py b/plextraktsync/commands/inspect.py index 216c139451..5a82542fae 100644 --- a/plextraktsync/commands/inspect.py +++ b/plextraktsync/commands/inspect.py @@ -63,6 +63,7 @@ def inspect_media(plex_id: PlexId): ) print("Parts:") + pm.item.reload(checkFiles=True) for index, part in enumerate(pm.parts, start=1): size = naturalsize(part.size, binary=True) file_link = f"[link=file://{quote_plus(part.file)}]{escape(part.file)}[/link]" From 95ff1a012253270eef57c6715736485b5a5597f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 19 Aug 2024 22:10:36 +0300 Subject: [PATCH 2/2] Remove un-needed isPartialObject check Inspect (that needs this), always calls reload(checkFiles=True) itself --- plextraktsync/plex/PlexLibraryItem.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/plextraktsync/plex/PlexLibraryItem.py b/plextraktsync/plex/PlexLibraryItem.py index ac0ab7cb3b..bc4a456b0f 100644 --- a/plextraktsync/plex/PlexLibraryItem.py +++ b/plextraktsync/plex/PlexLibraryItem.py @@ -195,9 +195,6 @@ def markers(self) -> list[Marker]: @property def parts(self) -> list[MediaPart]: - if self.item.isPartialObject(): - self.item.reload() - for media in self.item.media: yield from media.parts