custom novel search fix
This commit is contained in:
parent
e3e3965795
commit
7e5def3a37
3 changed files with 6 additions and 6 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue