custom novel search fix

This commit is contained in:
Finnley Somdahl 2024-01-09 06:22:25 -06:00
parent e3e3965795
commit 7e5def3a37
3 changed files with 6 additions and 6 deletions

View file

@ -22,10 +22,10 @@ class DynamicNovelParser(extension: NovelExtension.Installed) : NovelParser() {
override suspend fun search(query: String): List<ShowResponse> {
val source = extension.sources.firstOrNull()
if (source is NovelInterface) {
return source.search(query, client)
return if (source is NovelInterface) {
source.search(query, client)
} else {
return emptyList()
emptyList()
}
}