- 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.
19 lines
605 B
Kotlin
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,
|
|
)
|
|
}
|