diff --git a/kotatsu-parsers-ksp/src/main/kotlin/org/koitharu/kotatsu/parsers/ksp/ParserProcessor.kt b/kotatsu-parsers-ksp/src/main/kotlin/org/koitharu/kotatsu/parsers/ksp/ParserProcessor.kt index 9c27b9eb..0009260d 100644 --- a/kotatsu-parsers-ksp/src/main/kotlin/org/koitharu/kotatsu/parsers/ksp/ParserProcessor.kt +++ b/kotatsu-parsers-ksp/src/main/kotlin/org/koitharu/kotatsu/parsers/ksp/ParserProcessor.kt @@ -83,11 +83,11 @@ class ParserProcessor( enum class MangaSource( val title: String, - val locale: String?, + val locale: String, val contentType: ContentType, val isBroken: Boolean, ) { - LOCAL("Local", null, ContentType.OTHER, false), + LOCAL("Local", "", ContentType.OTHER, false), """.trimIndent(), ) @@ -110,7 +110,7 @@ class ParserProcessor( ) sourcesWriter?.write( """ - DUMMY("Dummy", null, ContentType.OTHER, false), + DUMMY("Dummy", "", ContentType.OTHER, false), ; } """.trimIndent(), @@ -135,7 +135,7 @@ class ParserProcessor( val title = annotation.arguments.single { it.name?.asString() == "title" }.value as String val locale = annotation.arguments.single { it.name?.asString() == "locale" }.value as String val type = annotation.arguments.single { it.name?.asString() == "type" }.value - val localeString = if (locale.isEmpty()) "null" else "\"$locale\"" + val localeString = "\"$locale\"" val localeObj = if (locale.isEmpty()) null else Locale(locale) val localeTitle = localeObj?.getDisplayLanguage(localeObj) if (localeObj != null && localeObj !in availableLocales) { diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/be/AnibelParser.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/be/AnibelParser.kt index bf5b76f7..833ef395 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/be/AnibelParser.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/be/AnibelParser.kt @@ -3,6 +3,7 @@ package org.koitharu.kotatsu.parsers.site.be import androidx.collection.ArraySet import org.json.JSONArray import org.json.JSONObject +import org.koitharu.kotatsu.parsers.Broken import org.koitharu.kotatsu.parsers.MangaLoaderContext import org.koitharu.kotatsu.parsers.MangaParser import org.koitharu.kotatsu.parsers.MangaSourceParser @@ -18,6 +19,7 @@ import org.koitharu.kotatsu.parsers.util.json.stringIterator import org.koitharu.kotatsu.parsers.util.toAbsoluteUrl import java.util.* +@Broken @MangaSourceParser("ANIBEL", "Anibel", "be") internal class AnibelParser(context: MangaLoaderContext) : MangaParser(context, MangaSource.ANIBEL) {