Fixed crash caused by incorrect handling of kitsu score type from login (#3887)

* track/kitsu: Fixed crash caused by incorrect handling of score type from login

* revert changelog

* turn into lowercase when accessing map
This commit is contained in:
Secozzi
2026-09-06 17:30:38 +02:00
committed by GitHub
parent 5e99306e5f
commit a82baac3ef
@@ -94,7 +94,7 @@ class Kitsu(id: Long) : BaseTracker(id, "Kitsu"), DeletableTracker {
override fun getCompletionStatus(): Long = COMPLETED override fun getCompletionStatus(): Long = COMPLETED
private fun getCurrentRatingSystem(): RatingSystem { private fun getCurrentRatingSystem(): RatingSystem {
val ratingSystem = scorePreference.get() val ratingSystem = scorePreference.get().lowercase()
return ratingSystems[ratingSystem] ?: throw Exception("Unknown score type $ratingSystem") return ratingSystems[ratingSystem] ?: throw Exception("Unknown score type $ratingSystem")
} }