diff --git a/app/shared/app-data/src/commonMain/kotlin/data/source/media/source/RssMediaSource.kt b/app/shared/app-data/src/commonMain/kotlin/data/source/media/source/RssMediaSource.kt index 3ab8dfdc34..ca0e325d91 100644 --- a/app/shared/app-data/src/commonMain/kotlin/data/source/media/source/RssMediaSource.kt +++ b/app/shared/app-data/src/commonMain/kotlin/data/source/media/source/RssMediaSource.kt @@ -1,3 +1,12 @@ +/* + * Copyright (C) 2024 OpenAni and contributors. + * + * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证. + * Use of this source code is governed by the GNU AGPLv3 license, which can be found at the following link. + * + * https://github.com/open-ani/ani/blob/main/LICENSE + */ + package me.him188.ani.app.data.source.media.source import io.ktor.client.request.get @@ -147,6 +156,7 @@ class RssMediaSource( RssSearchQuery( subjectName = name, episodeSort = query.episodeSort, + allSubjectNames = query.subjectNames, ), ).map { MediaMatch(it, MatchKind.FUZZY) @@ -157,10 +167,11 @@ class RssMediaSource( data class RssSearchQuery( val subjectName: String, + val allSubjectNames: Set, val episodeSort: EpisodeSort, ) fun RssSearchQuery.toFilterContext() = MediaListFilterContext( - subjectNames = setOf(subjectName), + subjectNames = allSubjectNames, episodeSort = episodeSort, ) diff --git a/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/mediasource/rss/test/RssTestPaneState.kt b/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/mediasource/rss/test/RssTestPaneState.kt index 9e559f13bb..06544a5c50 100644 --- a/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/mediasource/rss/test/RssTestPaneState.kt +++ b/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/mediasource/rss/test/RssTestPaneState.kt @@ -97,6 +97,7 @@ class RssTestPaneState( val query = RssSearchQuery( subjectName = testData.keyword, episodeSort = EpisodeSort(sort), + allSubjectNames = setOf(testData.keyword), ) viewingItem = null launchRequestInBackground {