mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-26 02:28:35 +01:00
Fix mass migration not using the same search queries as individual migration (#2736)
This commit is contained in:
@@ -14,6 +14,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
||||
### Fixed
|
||||
- Fix reader tap zones triggering after scrolling is stopped by tapping ([@NGB-Was-Taken](https://github.com/NGB-Was-Taken)) ([#2680](https://github.com/mihonapp/mihon/pull/2680))
|
||||
- Fix shizuku installer not updating installed extensions ([@NGB-Was-Taken](https://github.com/NGB-Was-Taken)) ([#2697](https://github.com/mihonapp/mihon/pull/2697))
|
||||
- Fix mass migration not using the same search queries as individual migration ([@AntsyLich](https://github.com/AntsyLich)) ([#2736](https://github.com/mihonapp/mihon/pull/2736))
|
||||
|
||||
## [v0.19.3] - 2025-11-07
|
||||
### Improved
|
||||
|
||||
@@ -41,8 +41,8 @@ abstract class BaseSmartSearchEngine<T>(
|
||||
val eligibleManga = supervisorScope {
|
||||
queries.map { query ->
|
||||
async(Dispatchers.Default) {
|
||||
val builtQuery = if (extraSearchParams != null) {
|
||||
"$query ${extraSearchParams.trim()}"
|
||||
val builtQuery = if (!extraSearchParams.isNullOrBlank()) {
|
||||
"$query $extraSearchParams"
|
||||
} else {
|
||||
query
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package mihon.feature.migration.list.search
|
||||
|
||||
import eu.kanade.tachiyomi.source.CatalogueSource
|
||||
import eu.kanade.tachiyomi.source.model.FilterList
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import mihon.domain.manga.model.toDomainManga
|
||||
import tachiyomi.domain.manga.model.Manga
|
||||
@@ -23,6 +22,6 @@ class SmartSourceSearchEngine(extraSearchParams: String?) : BaseSmartSearchEngin
|
||||
}
|
||||
|
||||
private fun makeSearchAction(source: CatalogueSource): SearchAction<SManga> = { query ->
|
||||
source.getSearchManga(1, query, FilterList()).mangas
|
||||
source.getSearchManga(1, query, source.getFilterList()).mangas
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user