Mercurial > minori
comparison src/gui/translate/anilist.cc @ 304:2115488eb302
*: add very early season searcher
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 13 May 2024 17:02:35 -0400 |
parents | b1f625b0227c |
children | b5d6c27c308f |
comparison
equal
deleted
inserted
replaced
303:ab7ff259b4ca | 304:2115488eb302 |
---|---|
45 if (map.find(format) == map.end()) | 45 if (map.find(format) == map.end()) |
46 return Anime::SeriesFormat::Unknown; | 46 return Anime::SeriesFormat::Unknown; |
47 return map.at(format); | 47 return map.at(format); |
48 } | 48 } |
49 | 49 |
50 std::string ToString(Anime::SeriesSeason season) { | |
51 switch (season) { | |
52 default: | |
53 case Anime::SeriesSeason::Winter: return "WINTER"; | |
54 case Anime::SeriesSeason::Fall: return "FALL"; | |
55 case Anime::SeriesSeason::Summer: return "SUMMER"; | |
56 case Anime::SeriesSeason::Spring: return "SPRING"; | |
57 } | |
58 } | |
59 | |
50 } // namespace AniList | 60 } // namespace AniList |
51 } // namespace Translate | 61 } // namespace Translate |