Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""LICENSE
2Copyright 2020 Hermann Krumrey <hermann@krumreyh.com>
4This file is part of otaku-info-web.
6otaku-info-web is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
11otaku-info-web is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
16You should have received a copy of the GNU General Public License
17along with otaku-info-web. If not, see <http://www.gnu.org/licenses/>.
18LICENSE"""
20from enum import Enum
23class MediaType(Enum):
24 """
25 Class that models a media type for media items
26 """
27 ANIME = "anime"
28 MANGA = "manga"
31class MediaSubType(Enum):
32 """
33 Class that models a media subtype for media items
34 """
35 TV = "tv"
36 TV_SHORT = "tv_short"
37 MOVIE = "movie"
38 SPECIAL = "special"
39 OVA = "ova"
40 ONA = "ona"
41 MUSIC = "music"
42 MANGA = "manga"
43 NOVEL = "novel"
44 ONE_SHOT = "one_shot"
45 UNKNOWN = "unknown"
48class MediaRelationType(Enum):
49 """
50 Class that models a media relation type
51 """
52 ADAPTATION = "adaptation"
53 PREQUEL = "prequel"
54 SEQUEL = "sequel"
55 PARENT = "parent"
56 SIDE_STORY = "side_story"
57 CHARACTER = "character"
58 SUMMARY = "summary"
59 ALTERNATIVE = "alternative"
60 SPIN_OFF = "spin_off"
61 OTHER = "other"
62 SOURCE = "source"
63 COMPILATION = "compilation"
64 CONTAINS = "contains"
67class ListService(Enum):
68 """
69 Class that defines available list services
70 """
71 ANILIST = "anilist"
72 MYANIMELIST = "myanimelist"
73 MANGADEX = "mangadex"
74 MANGAUPDATES = "mangaupdates"
75 KITSU = "kitsu"
76 ANIMEPLANET = "animeplanet"
79class ReleasingState(Enum):
80 """
81 Class that defines possible releasing states
82 """
83 FINISHED = "finished"
84 RELEASING = "releasing"
85 NOT_YET_RELEASED = "not_yet_released"
86 CANCELLED = "cancelled"
87 UNKNOWN = "unknown"
90class ConsumingState(Enum):
91 """
92 Class that defines the possible consuming states for a user and media item
93 """
94 CURRENT = "current"
95 PLANNING = "planning"
96 COMPLETED = "completed"
97 DROPPED = "dropped"
98 PAUSED = "paused"
99 REPEATING = "repeating"
102class NotificationType(Enum):
103 """
104 Class that defines the possible notification types
105 """
106 NEW_MANGA_CHAPTERS = "new_manga_chapters"
107 NEW_ANIME_EPISODES = "new_anime_episodes"