From 60360d4f1f55366633bc4ec4197df6a71daf8661 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 17 Jun 2020 11:01:29 -0400 Subject: [PATCH] Handle language 14?! --- youmubot-osu/src/models/parse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youmubot-osu/src/models/parse.rs b/youmubot-osu/src/models/parse.rs index fcb0532..c4aed0d 100644 --- a/youmubot-osu/src/models/parse.rs +++ b/youmubot-osu/src/models/parse.rs @@ -184,7 +184,7 @@ fn parse_language(s: impl AsRef) -> ParseResult { use Language::*; Ok(match t { 0 => Any, - 1 => Other, + 1 | 14 => Other, 2 => English, 3 => Japanese, 4 => Chinese, @@ -197,7 +197,7 @@ fn parse_language(s: impl AsRef) -> ParseResult { 11 => Italian, _ => { return Err(ParseError::InvalidValue { - field: "langugae", + field: "language", value: t.to_string(), }) }