Add dummy MangaSource

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

Loading…
Cancel
Save