Mercurial > minori
comparison src/gui/translate/anime.cc @ 384:0393debc0ed2
fix airing status not being imported from database correctly
oops
| author | Paper <paper@tflc.us> |
|---|---|
| date | Thu, 06 Nov 2025 08:57:41 -0500 |
| parents | ea3a74ed2ef9 |
| children |
comparison
equal
deleted
inserted
replaced
| 383:27c462bc7815 | 384:0393debc0ed2 |
|---|---|
| 123 {"on hiatus", Anime::SeriesStatus::Hiatus } | 123 {"on hiatus", Anime::SeriesStatus::Hiatus } |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 std::string lower = Strings::ToLower(str); | 126 std::string lower = Strings::ToLower(str); |
| 127 | 127 |
| 128 if (map.find(str) == map.end()) | 128 if (map.find(lower) == map.end()) |
| 129 return Anime::SeriesStatus::Unknown; | 129 return Anime::SeriesStatus::Unknown; |
| 130 return map.at(str); | 130 |
| 131 return map.at(lower); | |
| 131 } | 132 } |
| 132 | 133 |
| 133 Anime::Season::Name ToSeriesSeason(const std::string &str) | 134 Anime::Season::Name ToSeriesSeason(const std::string &str) |
| 134 { | 135 { |
| 135 static const std::unordered_map<std::string, Anime::Season::Name> map = { | 136 static const std::unordered_map<std::string, Anime::Season::Name> map = { |
