mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 08:48:54 +00:00
Handle language 14?!
This commit is contained in:
parent
200416765a
commit
60360d4f1f
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ fn parse_language(s: impl AsRef<str>) -> ParseResult<Language> {
|
||||||
use Language::*;
|
use Language::*;
|
||||||
Ok(match t {
|
Ok(match t {
|
||||||
0 => Any,
|
0 => Any,
|
||||||
1 => Other,
|
1 | 14 => Other,
|
||||||
2 => English,
|
2 => English,
|
||||||
3 => Japanese,
|
3 => Japanese,
|
||||||
4 => Chinese,
|
4 => Chinese,
|
||||||
|
@ -197,7 +197,7 @@ fn parse_language(s: impl AsRef<str>) -> ParseResult<Language> {
|
||||||
11 => Italian,
|
11 => Italian,
|
||||||
_ => {
|
_ => {
|
||||||
return Err(ParseError::InvalidValue {
|
return Err(ParseError::InvalidValue {
|
||||||
field: "langugae",
|
field: "language",
|
||||||
value: t.to_string(),
|
value: t.to_string(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue