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

Initial Jellyfin 10.10 support #4040

Merged
merged 4 commits into from
Oct 5, 2024
Merged

Conversation

nielsvanvelzen
Copy link
Member

@nielsvanvelzen nielsvanvelzen commented Oct 1, 2024

Changes

Update the SDK to Jellyfin 10.10. Different changes are split over multiple commits:

  • Update SDK to the 1.6.0 beta
  • Add missing properties in ModelCompat
    • The hasSegments property must be set, so we default to false for converted items
  • Update "new premieres" to use new indexNumber filter in API request
    • This removes client-side filtering
  • Remove nullability checks for BaseItemDtoQueryResult.items
    • No longer need to .orEmpty() everywhere - the list is now always set (although it may be empty 😉)

Issues

@nielsvanvelzen nielsvanvelzen added the enhancement New feature or request label Oct 1, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.18.0 milestone Oct 1, 2024
val firstNextUp = response.items?.firstOrNull()
if (query.seriesId != null && response.items?.size == 1 && firstNextUp?.seasonId != null && firstNextUp.indexNumber != null) {
val firstNextUp = response.items.firstOrNull()
if (query.seriesId != null && response.items.size == 1 && firstNextUp?.seasonId != null && firstNextUp.indexNumber != null) {

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style. Warning

Line detected, which is longer than the defined maximum line length in the code style.
val firstNextUp = response.items?.firstOrNull()
if (query.seriesId != null && response.items?.size == 1 && firstNextUp?.seasonId != null && firstNextUp.indexNumber != null) {
val firstNextUp = response.items.firstOrNull()
if (query.seriesId != null && response.items.size == 1 && firstNextUp?.seasonId != null && firstNextUp.indexNumber != null) {

Check warning

Code scanning / detekt

Complex conditions should be simplified and extracted into well-named methods if necessary. Warning

This condition is too complex (4). Defined complexity threshold for conditions is set to '4'
@nielsvanvelzen nielsvanvelzen marked this pull request as ready for review October 1, 2024 18:54
@nielsvanvelzen nielsvanvelzen changed the title Jellyfin 10.10 Initial Jellyfin 10.10 support Oct 1, 2024
@nielsvanvelzen nielsvanvelzen merged commit 6492471 into jellyfin:master Oct 5, 2024
6 checks passed
@nielsvanvelzen nielsvanvelzen deleted the 10-10 branch October 5, 2024 12:51
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.

1 participant