Mercurial > minori
comparison src/core/anime_season.cc @ 284:e66ffc338d82
anime: refactor title structure to a map
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 08 May 2024 16:21:05 -0400 |
parents | 3ede7be4f449 |
children | 10096c5489e3 |
comparison
equal
deleted
inserted
replaced
283:969a3e8c79c5 | 284:e66ffc338d82 |
---|---|
5 /* MAL has a different idea of seasons than Kitsu/AniList | 5 /* MAL has a different idea of seasons than Kitsu/AniList |
6 * prepare ahead of time for this discrepancy. */ | 6 * prepare ahead of time for this discrepancy. */ |
7 SeriesSeason GetSeasonForMonth(Date::Month month) { | 7 SeriesSeason GetSeasonForMonth(Date::Month month) { |
8 switch (month) { | 8 switch (month) { |
9 case Date::Month::Jan: case Date::Month::Feb: case Date::Month::Mar: | 9 case Date::Month::Jan: case Date::Month::Feb: case Date::Month::Mar: |
10 default: | |
10 return SeriesSeason::Winter; | 11 return SeriesSeason::Winter; |
11 case Date::Month::Apr: case Date::Month::May: case Date::Month::Jun: | 12 case Date::Month::Apr: case Date::Month::May: case Date::Month::Jun: |
12 return SeriesSeason::Spring; | 13 return SeriesSeason::Spring; |
13 case Date::Month::Jul: case Date::Month::Aug: case Date::Month::Sep: | 14 case Date::Month::Jul: case Date::Month::Aug: case Date::Month::Sep: |
14 return SeriesSeason::Summer; | 15 return SeriesSeason::Summer; |