feat:支持订阅绑定类别和自定义识别词

This commit is contained in:
jxxghp
2024-10-09 15:21:32 +08:00
parent e31df15b5e
commit 7ea01c1109
13 changed files with 191 additions and 124 deletions

View File

@@ -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(

View File

@@ -47,6 +47,8 @@ class DownloadHistory(Base):
date = Column(String)
# 附加信息
note = Column(JSON)
# 自定义媒体类别
media_category = Column(String)
@staticmethod
@db_query

View File

@@ -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