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

[Feature Request] - Backup and Restore of watch status. #130

Open
devanteweary opened this issue Dec 31, 2023 · 2 comments
Open

[Feature Request] - Backup and Restore of watch status. #130

devanteweary opened this issue Dec 31, 2023 · 2 comments

Comments

@devanteweary
Copy link

Hey Luigi! What's up man??

I forgot to make this an actual "issue" so here it is.

Basically a feature suggestion to backup and restore each user's watch state.

Maybe the option to select Plex, JF, or both.

Alright see ya!

@luigi311
Copy link
Owner

luigi311 commented Jan 5, 2024

Backup should be easy to handle, i can make it just save the dictionary of the watch list to a file if that file does not exist already that way the backup is only generated on the first run and not replaced after every sync.

Restoring it though might be weird since it will probably need a ENV variable such as RESTORE set to true that will change the path this takes.

Restore can be handled two ways

  1. By generating the current watch status and marking anything that is in the new dictionary and not in the backup as unwatched/partially watched and then exits as if the RUN_ONLY_ONCE variable is set.

  2. Wipe that entire users played list and then running the backup dictionary as if it is going through the normal flow and marking them as watched

1 is a lot less destructive in that it wont have to wipe everything and potentially leave you with nothing watched but that requires more functions being made that might have bugs.
2 has the added benefit just requiring a function that wipes the users watch history as it will use the existing ones for handling the marking for the restore portion.

Either way i wont be implementing this just yet as i want to marinate on which implementation i want to take for the restoring process.

@gaming09
Copy link

gaming09 commented Jan 7, 2024

that would be awesome

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

No branches or pull requests

3 participants