komikku/app/src/main/java/exh/smartsearch/SmartLibrarySearchEngine.kt
Cuong-Tran e2a92b9220 refactor(mass-migration): move migration list feature to mihon.feature.migration.list (#1402)
- Relocates migration process screens, models, and components from `eu.kanade` and `exh` packages to a unified `mihon.feature.migration.list` package.
- Renames `MigrationListScreen` (presentation) to `MigrationListScreenContent` to avoid naming conflicts with the UI screen.
- Moves `SmartSourceSearchEngine` and `BaseSmartSearchEngine` to `mihon.feature.migration.list.search`.
- Updates all affected imports across the project.
2026-01-21 12:42:48 +07:00

19 lines
605 B
Kotlin

package exh.smartsearch
import mihon.feature.migration.list.search.BaseSmartSearchEngine
import tachiyomi.domain.library.model.LibraryManga
class SmartLibrarySearchEngine(
extraSearchParams: String? = null,
) : BaseSmartSearchEngine<LibraryManga>(extraSearchParams, 0.7) {
override fun getTitle(result: LibraryManga) = result.manga.ogTitle
suspend fun smartSearch(library: List<LibraryManga>, title: String): LibraryManga? =
smartSearch(
{ query ->
library.filter { it.manga.ogTitle.contains(query, true) }
},
title,
)
}