diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistApi.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistApi.kt index e832413b5..0147dbb54 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistApi.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistApi.kt @@ -110,7 +110,7 @@ class AnilistApi(val client: OkHttpClient, interceptor: AnilistInterceptor) { |media(search: ${'$'}query, type: MANGA, format_not_in: [NOVEL]) { |id |title { - |romaji + |userPreferred |} |coverImage { |large @@ -175,12 +175,12 @@ class AnilistApi(val client: OkHttpClient, interceptor: AnilistInterceptor) { |media { |id |title { - |romaji + |userPreferred |} |coverImage { |large |} - |type + |format |status |chapters |description @@ -264,7 +264,7 @@ class AnilistApi(val client: OkHttpClient, interceptor: AnilistInterceptor) { private fun jsonToALManga(struct: JsonObject): ALManga { return ALManga( struct["id"]!!.jsonPrimitive.int, - struct["title"]!!.jsonObject["romaji"]!!.jsonPrimitive.content, + struct["title"]!!.jsonObject["userPreferred"]!!.jsonPrimitive.content, struct["coverImage"]!!.jsonObject["large"]!!.jsonPrimitive.content, struct["description"]!!.jsonPrimitive.contentOrNull, struct["format"]!!.jsonPrimitive.content.replace("_", "-"), diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistModels.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistModels.kt index 920dbc229..5911361fd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistModels.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistModels.kt @@ -10,7 +10,7 @@ import java.util.Locale data class ALManga( val media_id: Int, - val title_romaji: String, + val title_user_pref: String, val image_url_lge: String, val description: String?, val format: String, @@ -21,7 +21,7 @@ data class ALManga( fun toTrack() = TrackSearch.create(TrackManager.ANILIST).apply { media_id = this@ALManga.media_id - title = title_romaji + title = title_user_pref total_chapters = this@ALManga.total_chapters cover_url = image_url_lge summary = description ?: ""