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

New setting: Allow delaying background sync while playing videos #2039

Closed

Conversation

Spacetech
Copy link

This is a follow up on #2027. While that change works, I still want to prevent background sync library refreshes (due to new media being added) from happening while playing videos.

The scheduled full sync code prevents it from running while videos are playing (link). I think we should allow the same for background sync.

Changes:

  • Add a Delay background sync while media is playing setting to enable similar functionality for the background sync flow. It will essentially keep storing websocket messages and process them once you are no longer playing a video.
  • Make the check for the refreshed property a little safer. I saw an error in my logs related to this.

@croneter
Copy link
Owner

croneter commented Mar 4, 2024

May I ask: why? I personally never had any issues with the way it's working now

@Spacetech
Copy link
Author

The skin I'm using displays a black flash at the top right of the screen when update_kodi_library is called. This even happens while I'm watching something. I think it's trying to indicate a refresh/something progressed, but it's very distracting.

This new setting is defaulting to false, so the existing behavior will remain the same unless someone opt's into it.

@croneter croneter changed the title Allow delaying background sync while playing videos New setting: Allow delaying background sync while playing videos Mar 26, 2024
@croneter
Copy link
Owner

Thanks once again!! Merged with 3bf7ae1, your new setting now defaults to true 😉

@croneter croneter closed this Mar 26, 2024
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.

2 participants