mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-06-01 05:40:21 +08:00
feat: 加入状态字段标记不可见和已失效视频,标记后不做重复处理
This commit is contained in:
14
constants.py
14
constants.py
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user