Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file cache for Plex library #38

Merged
merged 3 commits into from
May 6, 2022
Merged

Add file cache for Plex library #38

merged 3 commits into from
May 6, 2022

Conversation

RemiRigal
Copy link
Owner

As mentioned in #35, the current approach is not suited for huge libraries as the scan of the Plex library happens too often and can take too much time.

This PR adds:

  • A cache file for the PlexServerCache class
  • A parameter refresh_library_on_scan that prevents PAL from refreshing the library on every Plex scan if set to false. The drawback of disabling this is that the episode with updated files will no longer be picked up outside of the scheduler task
  • A complete scan of the library by the scheduler

@RemiRigal RemiRigal merged commit 712040b into master May 6, 2022
@RemiRigal RemiRigal deleted the feat/cache branch May 6, 2022 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant