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

Catch errors when reporting playback state #4171

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

nielsvanvelzen
Copy link
Member

Ideally the stop event should notify the user too but that can be done later ©️

Changes

  • Catch errors when reporting playback state

Issues

@nielsvanvelzen nielsvanvelzen added bug Something isn't working crash Bug causing app crashes labels Nov 5, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.18.0 milestone Nov 5, 2024
api.playStateApi.reportPlaybackProgress(info)
runCatching {
api.playStateApi.reportPlaybackProgress(info)
}.onFailure { error -> Timber.w(error, "Failed to report playback progress") }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one isn't as excited as the others

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, if the start/stop fails it can screw with activity / playback reporting etc. A missed progress update can be easily recovered with the next update.

@nielsvanvelzen nielsvanvelzen enabled auto-merge (rebase) November 5, 2024 14:43
@nielsvanvelzen nielsvanvelzen merged commit e1867b2 into jellyfin:master Nov 5, 2024
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the reporting-crashes branch November 5, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash Bug causing app crashes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants