feat: 加入状态字段标记不可见和已失效视频,标记后不做重复处理

This commit is contained in:
amtoaer
2023-11-25 13:13:51 +08:00
parent be6b8eaa89
commit 5629dcce69
5 changed files with 60 additions and 4 deletions

View File

@@ -30,6 +30,20 @@ class MediaType(IntEnum):
VIDEO_COLLECTION = 21
class MediaStatus(IntEnum):
NORMAL = 1 # 正常稿件
INVISIBLE = 2 # 不可见稿件
DELETED = 3 # 已失效视频
@property
def text(self) -> str:
return {
MediaStatus.NORMAL: "normal",
MediaStatus.INVISIBLE: "invisible",
MediaStatus.DELETED: "deleted",
}[self]
TORTOISE_ORM = {
"connections": {"default": f"sqlite://{DEFAULT_DATABASE_PATH}"},
"apps": {