The crash is fixed somehow

This commit is contained in:
Jobobby04
2023-03-15 19:01:44 -04:00
parent d400ddc0a5
commit 04dc4ef66a
10 changed files with 13 additions and 8 deletions
@@ -33,10 +33,7 @@ class ApiMangaParser(
/**
* Use reflection to create a new instance of metadata
*/
private fun newMetaInstance() = metaClass.constructors.find {
it.parameters.isEmpty()
}?.call()
?: error("Could not find no-args constructor for meta class: ${metaClass.qualifiedName}!")
private fun newMetaInstance() = MangaDexSearchMetadata()
suspend fun parseToManga(
manga: SManga,