Update style for ktlint 1.8 (#390)

Updated `ktlint`, so lots of code style changes, no user facing changes
This commit is contained in:
damontecres 2025-12-06 18:11:07 -05:00 committed by GitHub
parent e9c54adaba
commit 9e7742034a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
54 changed files with 577 additions and 196 deletions

View file

@ -81,15 +81,18 @@ data class BaseItem(
} ?: Destination.MediaItem(id, type, this)
}
BaseItemKind.SEASON ->
BaseItemKind.SEASON -> {
Destination.SeriesOverview(
data.seriesId!!,
BaseItemKind.SERIES,
this,
SeasonEpisodeIds(id, indexNumber, null, null),
)
}
else -> Destination.MediaItem(id, type, this)
else -> {
Destination.MediaItem(id, type, this)
}
}
return result
}

View file

@ -106,6 +106,7 @@ data class GetItemsFilter(
-> null
FilterVideoType.BLU_RAY -> VideoType.BLU_RAY
FilterVideoType.DVD -> VideoType.DVD
}
}

View file

@ -136,12 +136,13 @@ fun chooseSubtitleStream(
}
}
SubtitlePlaybackMode.ONLY_FORCED ->
SubtitlePlaybackMode.ONLY_FORCED -> {
if (subtitleLanguage != null) {
candidates.firstOrNull { it.language == subtitleLanguage && it.isForced }
} else {
candidates.firstOrNull { it.isForced }
}
}
SubtitlePlaybackMode.SMART -> {
val audioLanguage = prefs.userConfig.audioLanguagePreference
@ -161,7 +162,9 @@ fun chooseSubtitleStream(
)
}
SubtitlePlaybackMode.NONE -> null
SubtitlePlaybackMode.NONE -> {
null
}
}
}
}