mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-15 16:54:09 -05:00
implement Source Filters
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user