Skip to content

Commit

Permalink
Update BangumiModels.kt (#1833)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trrrrw authored Jan 8, 2025
1 parent adccd99 commit b71d166
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
}

0 comments on commit b71d166

Please sign in to comment.