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:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user