Skip to content

Commit

Permalink
Merge pull request #140 from glensc/checkFiles-reload
Browse files Browse the repository at this point in the history
Fix: Pass checkFiles to reload
  • Loading branch information
glensc authored Sep 1, 2024
2 parents 07c6aa9 + 355b35d commit 27cde57
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()
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 27cde57

Please sign in to comment.