From 3a5268d90a7727b6473ddb85c476b2a1f9c034de Mon Sep 17 00:00:00 2001 From: Trrrrw <68099555+Trrrrw@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:35:50 +0800 Subject: [PATCH] Update BangumiModels.kt --- .../eu/kanade/tachiyomi/data/track/bangumi/BangumiModels.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiModels.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiModels.kt index e5811d707c5a..2d57c6356d85 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiModels.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiModels.kt @@ -8,7 +8,7 @@ fun Track.toBangumiStatus() = when (status) { Bangumi.ON_HOLD -> "on_hold" Bangumi.DROPPED -> "dropped" Bangumi.PLAN_TO_READ -> "wish" - else -> throw NotImplementedError("Unknown status: $status") + else -> "do" } fun toTrackStatus(status: String) = when (status) { @@ -17,5 +17,5 @@ fun toTrackStatus(status: String) = when (status) { "on_hold" -> Bangumi.ON_HOLD "dropped" -> Bangumi.DROPPED "wish" -> Bangumi.PLAN_TO_READ - else -> throw NotImplementedError("Unknown status: $status") + else -> Bangumi.READING }