Mercurial > minori
annotate include/core/anime_db.h @ 118:39521c47c7a3
*: another huge megacommit, SORRY
The torrents page works a lot better now
Added the edit option to the anime list right click menu
Vectorized currently playing files
Available player and extensions are now loaded at runtime
from files in (dotpath)/players.json and (dotpath)/extensions.json
These paths are not permanent and will likely be moved to
(dotpath)/recognition
...
...
...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 07 Nov 2023 23:40:54 -0500 |
parents | c69230dc2b5d |
children | de0a8d2f28b3 |
rev | line source |
---|---|
10 | 1 #ifndef __core__anime_db_h |
2 #define __core__anime_db_h | |
85 | 3 |
10 | 4 #include "core/anime.h" |
76 | 5 #include <string> |
10 | 6 #include <unordered_map> |
7 | |
8 namespace Anime { | |
9 | |
10 class Database { | |
11 public: | |
12 std::unordered_map<int, Anime> items; | |
13 int GetTotalAnimeAmount(); | |
14 int GetTotalEpisodeAmount(); | |
15 int GetTotalWatchedAmount(); | |
16 int GetTotalPlannedAmount(); | |
17 double GetAverageScore(); | |
18 double GetScoreDeviation(); | |
19 int GetListsAnimeAmount(ListStatus status); | |
83 | 20 int GetAnimeFromTitle(const std::string& title); |
10 | 21 }; |
22 | |
11 | 23 extern Database db; |
10 | 24 |
25 } // namespace Anime | |
85 | 26 |
27 | |
10 | 28 #endif // __core__anime_db_h |