Add dummy MangaSource

This commit is contained in:
2022-04-23 09:41:58 +03:00
parent 62e43c407a
commit c1aa8a45dc

View File

@@ -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(),