Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/src/gui/translate/anilist.cc Mon May 13 15:19:55 2024 -0400 +++ b/src/gui/translate/anilist.cc Mon May 13 17:02:35 2024 -0400 @@ -47,5 +47,15 @@ return map.at(format); } +std::string ToString(Anime::SeriesSeason season) { + switch (season) { + default: + case Anime::SeriesSeason::Winter: return "WINTER"; + case Anime::SeriesSeason::Fall: return "FALL"; + case Anime::SeriesSeason::Summer: return "SUMMER"; + case Anime::SeriesSeason::Spring: return "SPRING"; + } +} + } // namespace AniList } // namespace Translate