mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
feat:支持订阅绑定类别和自定义识别词
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import json
|
||||
from typing import Any, Self, List, Tuple, Optional, Generator
|
||||
|
||||
from sqlalchemy import create_engine, QueuePool, and_, inspect
|
||||
from sqlalchemy.orm import declared_attr, sessionmaker, Session, scoped_session, as_declarative
|
||||
|
||||
from app.core.config import settings
|
||||
from app.utils.object import ObjectUtils
|
||||
|
||||
# 数据库引擎
|
||||
Engine = create_engine(
|
||||
|
||||
@@ -47,6 +47,8 @@ class DownloadHistory(Base):
|
||||
date = Column(String)
|
||||
# 附加信息
|
||||
note = Column(JSON)
|
||||
# 自定义媒体类别
|
||||
media_category = Column(String)
|
||||
|
||||
@staticmethod
|
||||
@db_query
|
||||
|
||||
@@ -74,6 +74,12 @@ class Subscribe(Base):
|
||||
search_imdbid = Column(Integer, default=0)
|
||||
# 是否手动修改过总集数 0否 1是
|
||||
manual_total_episode = Column(Integer, default=0)
|
||||
# 自定义识别词
|
||||
custom_words = Column(String)
|
||||
# 自定义媒体类别
|
||||
media_category = Column(String)
|
||||
# 过滤规则组
|
||||
filter_groups = Column(JSON, default=list)
|
||||
|
||||
@staticmethod
|
||||
@db_query
|
||||
|
||||
Reference in New Issue
Block a user