Add dummy MangaSource

pull/6/head
Koitharu 4 years ago
parent 62e43c407a
commit c1aa8a45dc
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -92,6 +92,7 @@ class ParserProcessor(
factoryWriter?.write( factoryWriter?.write(
""" """
MangaSource.LOCAL -> throw NotImplementedError("Local manga parser is not supported") MangaSource.LOCAL -> throw NotImplementedError("Local manga parser is not supported")
MangaSource.DUMMY -> throw NotImplementedError("Dummy manga parser cannot be instantiated")
}.also { }.also {
require(it.source == this) { require(it.source == this) {
"Cannot instantiate manga parser: ${'$'}name mapped to ${'$'}{it.source}" "Cannot instantiate manga parser: ${'$'}name mapped to ${'$'}{it.source}"
@ -101,6 +102,7 @@ class ParserProcessor(
) )
sourcesWriter?.write( sourcesWriter?.write(
""" """
DUMMY("Dummy", null),
; ;
} }
""".trimIndent(), """.trimIndent(),

Loading…
Cancel
Save