mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-05-12 02:21:17 +08:00
feat: 加入状态字段标记不可见和已失效视频,标记后不做重复处理
This commit is contained in:
@@ -9,6 +9,7 @@ from constants import (
|
||||
DEFAULT_THUMB_PATH,
|
||||
MIGRATE_COMMAND,
|
||||
TORTOISE_ORM,
|
||||
MediaStatus,
|
||||
MediaType,
|
||||
)
|
||||
from settings import settings
|
||||
@@ -47,6 +48,9 @@ class FavoriteItem(Model):
|
||||
id = fields.IntField(pk=True)
|
||||
name = fields.CharField(max_length=255)
|
||||
type = fields.IntEnumField(enum_type=MediaType)
|
||||
status = fields.IntEnumField(
|
||||
enum_type=MediaStatus, default=MediaStatus.NORMAL
|
||||
)
|
||||
bvid = fields.CharField(max_length=255)
|
||||
desc = fields.TextField()
|
||||
cover = fields.TextField()
|
||||
|
||||
Reference in New Issue
Block a user