comparison src/core/anime_season.cc @ 326:10096c5489e3

anime/db: refactor anime_season_db out
author Paper <paper@paper.us.eu.org>
date Thu, 13 Jun 2024 00:42:00 -0400
parents e66ffc338d82
children b5d6c27c308f
comparison
equal deleted inserted replaced
325:78929794e7d8 326:10096c5489e3
1 #include "core/anime_season.h" 1 #include "core/anime_season.h"
2 2
3 namespace Anime { 3 namespace Anime {
4 4
5 /* MAL has a different idea of seasons than Kitsu/AniList
6 * prepare ahead of time for this discrepancy. */
7 SeriesSeason GetSeasonForMonth(Date::Month month) { 5 SeriesSeason GetSeasonForMonth(Date::Month month) {
8 switch (month) { 6 switch (month) {
9 case Date::Month::Jan: case Date::Month::Feb: case Date::Month::Mar: 7 case Date::Month::Jan: case Date::Month::Feb: case Date::Month::Mar:
10 default: 8 default:
11 return SeriesSeason::Winter; 9 return SeriesSeason::Winter;