Mercurial > minori
view src/core/anime_season.cc @ 318:3b355fa948c7
config: use TOML instead of INI
unfortunately, INI is not enough, and causes some paths including
semicolons to break with our current storage of the library folders.
so, I decided to switch to TOML which does support real arrays...
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 05:25:41 -0400 |
parents | e66ffc338d82 |
children | 10096c5489e3 |
line wrap: on
line source
#include "core/anime_season.h" namespace Anime { /* MAL has a different idea of seasons than Kitsu/AniList * prepare ahead of time for this discrepancy. */ SeriesSeason GetSeasonForMonth(Date::Month month) { switch (month) { case Date::Month::Jan: case Date::Month::Feb: case Date::Month::Mar: default: return SeriesSeason::Winter; case Date::Month::Apr: case Date::Month::May: case Date::Month::Jun: return SeriesSeason::Spring; case Date::Month::Jul: case Date::Month::Aug: case Date::Month::Sep: return SeriesSeason::Summer; case Date::Month::Oct: case Date::Month::Nov: case Date::Month::Dec: return SeriesSeason::Fall; } } }