-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenums.py
More file actions
44 lines (33 loc) · 867 Bytes
/
Copy pathenums.py
File metadata and controls
44 lines (33 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from __future__ import annotations
from enum import Enum
__all__ = ['SearchType', 'LocalEnum', 'TitleType', 'TitleStatus', 'TitleSortedByType']
class LocalEnum(Enum):
def __str__(self):
return f'{self.value}'
class SearchType(LocalEnum):
"""
Enumerator representing adv search type
* **TITLE** - White
* **PEOPLE** - Gray
* **ARTICLES** - Black
"""
TITLE = 'titles'
PEOPLE = 'people'
ARTICLES = 'articles'
class TitleType(LocalEnum):
DRAMAS = 68
DRAMA_SPECIAL = 83
TV_SHOWS = 86
MOVIES = 77
class TitleStatus(LocalEnum):
ONGOING = 1
COMPLETED = 3
UPCOMING = 2
class TitleSortedByType(LocalEnum):
RELEVANCE = "relevance"
MOST_POPULAR = "popular"
TOP_RANKED = "top"
TOP_RATED = "rated"
NEWEST = "newest"
RELEASE_DATE = "date"
RECENTLY_ADDED = "recently"