diff --git a/game/multiple-choice-game/build.gradle.kts b/game/multiple-choice-game/build.gradle.kts index d151283c8..cc3f5eb26 100644 --- a/game/multiple-choice-game/build.gradle.kts +++ b/game/multiple-choice-game/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "dev.schlaubi.mikbot" -version = "2.8.0" +version = "2.8.1" dependencies { plugin(projects.game.gameApi) diff --git a/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/InnerTubeBox.kt b/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/InnerTubeBox.kt index 3f84f3575..75d060318 100644 --- a/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/InnerTubeBox.kt +++ b/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/InnerTubeBox.kt @@ -3,7 +3,7 @@ package dev.schlaubi.mikmusic.innerttube import kotlinx.serialization.Serializable @Serializable -data class InnerTubeBox(val contents: List = emptyList()) : List by contents +data class InnerTubeBox(val contents: List = emptyList()) @Serializable diff --git a/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/YouTubeUtil.kt b/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/YouTubeUtil.kt index 0542fb13c..1e37a90bb 100644 --- a/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/YouTubeUtil.kt +++ b/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/YouTubeUtil.kt @@ -11,7 +11,7 @@ private const val timeSeparator = ':' suspend fun requestYouTubeAutoComplete(query: String, locale: Locale): List { val response = InnerTubeClient.requestMusicAutoComplete(query, locale) - return response.firstOrNull()?.searchSuggestionsSectionRenderer?.mapNotNull { + return response.contents.firstOrNull()?.searchSuggestionsSectionRenderer?.contents?.mapNotNull { it.searchSuggestionRenderer?.suggestion?.joinRuns() } ?: emptyList() } diff --git a/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/autoplay.kt b/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/autoplay.kt index 7bf12df8c..88e749308 100644 --- a/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/autoplay.kt +++ b/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/autoplay.kt @@ -88,7 +88,7 @@ data class PlaylistPanelVideoRenderer( } @Serializable -data class Text(val text: String) : CharSequence by text { +data class Text(val text: String) { override fun toString(): String = text } diff --git a/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/chapters.kt b/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/chapters.kt index 899d0ec45..f559ec118 100644 --- a/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/chapters.kt +++ b/music/src/main/kotlin/dev/schlaubi/mikmusic/innerttube/chapters.kt @@ -34,7 +34,7 @@ data class MacroMarkersListItemRenderer( ) @Serializable -data class TextBlock(val simpleText: String): CharSequence by simpleText { +data class TextBlock(val simpleText: String) { override fun toString(): String = simpleText }