mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix RecommendMediaSource
This commit is contained in:
@@ -6,8 +6,8 @@ from app import schemas
|
|||||||
from app.core.event import eventmanager
|
from app.core.event import eventmanager
|
||||||
from app.core.security import verify_token
|
from app.core.security import verify_token
|
||||||
from app.schemas.types import ChainEventType
|
from app.schemas.types import ChainEventType
|
||||||
from chain.recommend import RecommendChain
|
from app.chain.recommend import RecommendChain
|
||||||
from schemas import RecommendSourceEventData
|
from app.schemas import RecommendSourceEventData
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|||||||
@@ -274,6 +274,7 @@ class RecommendMediaSource(BaseModel):
|
|||||||
"""
|
"""
|
||||||
name: str = Field(..., description="数据源名称")
|
name: str = Field(..., description="数据源名称")
|
||||||
api_path: str = Field(..., description="媒体数据源API地址")
|
api_path: str = Field(..., description="媒体数据源API地址")
|
||||||
|
type: str = Field(..., description="类型")
|
||||||
|
|
||||||
|
|
||||||
class RecommendSourceEventData(ChainEventData):
|
class RecommendSourceEventData(ChainEventData):
|
||||||
|
|||||||
Reference in New Issue
Block a user