Skip to content

Commit

Permalink
Always to reload, because isPartialObject is not true
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Sep 1, 2024
1 parent c507f98 commit 355b35d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plexfuse/vfs/entry/FileEntry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 355b35d

Please sign in to comment.