diff src/core/anime_db.cc @ 279:657fda1b9cac

*: clean up enums
author Paper <paper@paper.us.eu.org>
date Fri, 19 Apr 2024 13:24:06 -0400
parents 9a04802848c0
children e66ffc338d82
line wrap: on
line diff
--- a/src/core/anime_db.cc	Thu Apr 18 17:24:42 2024 -0400
+++ b/src/core/anime_db.cc	Fri Apr 19 13:24:06 2024 -0400
@@ -27,7 +27,7 @@
 }
 
 size_t Database::GetListsAnimeAmount(ListStatus status) {
-	if (status == ListStatus::NOT_IN_LIST)
+	if (status == ListStatus::NotInList)
 		return 0;
 
 	size_t total = 0;
@@ -169,7 +169,7 @@
 		{"genres", anime.GetGenres()},
 		{"producers", anime.GetProducers()},
 		{"format", Translate::ToString(anime.GetFormat())},
-		{"season", Translate::ToString(anime.GetSeason())},
+		// {"season", Translate::ToString(anime.GetSeason())},
 		{"audience_score", anime.GetAudienceScore()},
 		{"synopsis", anime.GetSynopsis()},
 		{"duration", anime.GetDuration()},
@@ -247,7 +247,7 @@
 	anime.SetGenres(JSON::GetArray<std::vector<std::string>>(json, "/genres"_json_pointer, {}));
 	anime.SetProducers(JSON::GetArray<std::vector<std::string>>(json, "/producers"_json_pointer, {}));
 	anime.SetFormat(Translate::ToSeriesFormat(JSON::GetString<std::string>(json, "/format"_json_pointer, "")));
-	anime.SetSeason(Translate::ToSeriesSeason(JSON::GetString<std::string>(json, "/season"_json_pointer, "")));
+	// anime.SetSeason(Translate::ToSeriesSeason(JSON::GetString<std::string>(json, "/season"_json_pointer, "")));
 	anime.SetAudienceScore(JSON::GetNumber(json, "/audience_score"_json_pointer, 0));
 	anime.SetSynopsis(JSON::GetString<std::string>(json, "/synopsis"_json_pointer, ""));
 	anime.SetDuration(JSON::GetNumber(json, "/duration"_json_pointer, 0));
@@ -291,4 +291,4 @@
 
 Database db;
 
-} // namespace Anime
\ No newline at end of file
+} // namespace Anime