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 additional information to PlaybackStartInfo #4147

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

nielsvanvelzen
Copy link
Member

We already have the media info when we call the reportStart function so why not let the server know our play method?

Changes

  • Add additional information to PlaybackStartInfo

Issues

@nielsvanvelzen nielsvanvelzen added the enhancement New feature or request label Nov 2, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.18.0 milestone Nov 2, 2024
Comment on lines +26 to +33
fun reportStart(
lifecycleOwner: LifecycleOwner,
playbackController: PlaybackController,
item: BaseItemDto,
streamInfo: StreamInfo,
position: Long,
paused: Boolean
) {

Check warning

Code scanning / detekt

The more parameters a function has the more complex it is. Long parameter lists are often used to control complex algorithms and violate the Single Responsibility Principle. Prefer functions with short parameter lists. Warning

The function reportStart(lifecycleOwner: LifecycleOwner, playbackController: PlaybackController, item: BaseItemDto, streamInfo: StreamInfo, position: Long, paused: Boolean) has too many parameters. The current threshold is set to 6.
@nielsvanvelzen nielsvanvelzen merged commit ef25757 into jellyfin:master Nov 2, 2024
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the honest-reporting branch November 5, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants