From c507f98fc6708e72560ae63df4557cac6ee34d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 1 Sep 2024 14:00:36 +0300 Subject: [PATCH 1/2] Pass checkFiles to reload --- src/plexfuse/vfs/entry/FileEntry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plexfuse/vfs/entry/FileEntry.py b/src/plexfuse/vfs/entry/FileEntry.py index 3814bd1..ae6e648 100644 --- a/src/plexfuse/vfs/entry/FileEntry.py +++ b/src/plexfuse/vfs/entry/FileEntry.py @@ -28,7 +28,7 @@ def attr(self): @staticmethod def get_size(playable: Playable, part: MediaPart): if playable.item.isPartialObject(): - playable.item.reload() + playable.item.reload(checkFiles=True) part = next(partx for partx in playable.item.iterParts() if partx.key == part.key) size = part.size if part.exists else None return size From 355b35d3e986932180dcd49afece4ed17285f276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 1 Sep 2024 14:26:41 +0300 Subject: [PATCH 2/2] Always to reload, because isPartialObject is not true --- src/plexfuse/vfs/entry/FileEntry.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plexfuse/vfs/entry/FileEntry.py b/src/plexfuse/vfs/entry/FileEntry.py index ae6e648..4bd2cf9 100644 --- a/src/plexfuse/vfs/entry/FileEntry.py +++ b/src/plexfuse/vfs/entry/FileEntry.py @@ -27,8 +27,7 @@ def attr(self): @staticmethod def get_size(playable: Playable, part: MediaPart): - if playable.item.isPartialObject(): - playable.item.reload(checkFiles=True) + playable.item.reload(checkFiles=True) part = next(partx for partx in playable.item.iterParts() if partx.key == part.key) size = part.size if part.exists else None return size