Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
Update parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
Koitharu committed Jun 21, 2022
1 parent 4b4a67f commit 30c5dfa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.6.20-RC'
id 'org.jetbrains.kotlin.jvm' version '1.6.20'
id 'application'
}

group = 'org.koitharu'
version = '0.2.2'
version = '0.2.3'

repositories {
mavenCentral()
Expand Down Expand Up @@ -48,12 +48,12 @@ jar {


dependencies {
implementation 'com.github.nv95:kotatsu-parsers:05a93e2380'
implementation 'com.github.nv95:kotatsu-parsers:8a3b6df91d'

implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.6.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.6.2'

implementation 'com.squareup.okhttp3:okhttp:4.9.3'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation 'com.squareup.okio:okio:3.1.0'
implementation 'org.json:json:20220320'
implementation 'io.webfolder:quickjs:1.1.0'
Expand Down
7 changes: 6 additions & 1 deletion src/main/kotlin/org/koitharu/kotatsu_dl/MainWindow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ class MainWindow(
withContext(Dispatchers.Default) {
when {
selectedMangaSource != MangaSource.LOCAL -> {
selectedMangaSource.newParser(MangaLoaderContextImpl).getList(offset, query, null, null)
val parser = selectedMangaSource.newParser(MangaLoaderContextImpl)
if (query == null) {
parser.getList(offset, emptySet(), null)
} else {
parser.getList(offset, query)
}
}
offset == 0 -> CompositeSearchHelper(
sources = MangaSource.values().filterNot { it == MangaSource.LOCAL },
Expand Down

0 comments on commit 30c5dfa

Please sign in to comment.