implement Source Filters

This commit is contained in:
Aria Moradi
2021-11-02 04:14:49 +03:30
parent 64ea8416b2
commit d90b986d19
11 changed files with 440 additions and 66 deletions

View File

@@ -8,6 +8,7 @@ package suwayomi.tachidesk.test
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import ch.qos.logback.classic.Level
import eu.kanade.tachiyomi.source.model.SManga
import mu.KotlinLogging
import org.jetbrains.exposed.dao.id.IdTable
import org.jetbrains.exposed.sql.batchInsert
@@ -41,6 +42,17 @@ fun createLibraryManga(
}
}
fun createSMangas(
count: Int
): List<SManga> {
return (0 until count).map {
SManga.create().apply {
title = "Manga $it"
url = "https://$title"
}
}
}
fun createChapters(
mangaId: Int,
amount: Int,