Mercurial > minori
diff src/gui/translate/anilist.cc @ 202:71832ffe425a
animia: re-add kvm fd source
this is all being merged from my wildly out-of-date laptop. SORRY!
in other news, I edited the CI file to install the wayland client
as well, so the linux CI build might finally get wayland stuff.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 02 Jan 2024 06:05:06 -0500 |
parents | 9613d72b097e |
children | 657fda1b9cac |
line wrap: on
line diff
--- a/src/gui/translate/anilist.cc Sun Nov 19 19:13:28 2023 -0500 +++ b/src/gui/translate/anilist.cc Tue Jan 02 06:05:06 2024 -0500 @@ -1,10 +1,11 @@ #include "gui/translate/anilist.h" +#include <unordered_map> namespace Translate { namespace AniList { Anime::SeriesStatus ToSeriesStatus(std::string status) { - const std::unordered_map<std::string, Anime::SeriesStatus> map = { + static const std::unordered_map<std::string, Anime::SeriesStatus> map = { {"FINISHED", Anime::SeriesStatus::FINISHED }, {"RELEASING", Anime::SeriesStatus::RELEASING }, {"NOT_YET_RELEASED", Anime::SeriesStatus::NOT_YET_RELEASED}, @@ -18,7 +19,7 @@ } Anime::SeriesSeason ToSeriesSeason(std::string season) { - const std::unordered_map<std::string, Anime::SeriesSeason> map = { + static const std::unordered_map<std::string, Anime::SeriesSeason> map = { {"WINTER", Anime::SeriesSeason::WINTER}, {"SPRING", Anime::SeriesSeason::SPRING}, {"SUMMER", Anime::SeriesSeason::SUMMER}, @@ -31,7 +32,7 @@ } Anime::SeriesFormat ToSeriesFormat(std::string format) { - const std::unordered_map<std::string, enum Anime::SeriesFormat> map = { + static const std::unordered_map<std::string, enum Anime::SeriesFormat> map = { {"TV", Anime::SeriesFormat::TV }, {"TV_SHORT", Anime::SeriesFormat::TV_SHORT}, {"MOVIE", Anime::SeriesFormat::MOVIE },