mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-13 16:19:49 +08:00
fix DiscoverMediaSource
This commit is contained in:
@@ -11,10 +11,10 @@ from app.schemas.types import ChainEventType
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/source", summary="获取发现数据源", response_model=List[schemas.DiscoverMediaSource])
|
||||
@router.get("/source", summary="获取探索数据源", response_model=List[schemas.DiscoverMediaSource])
|
||||
def source(_: schemas.TokenPayload = Depends(verify_token)) -> Any:
|
||||
"""
|
||||
获取发现数据源
|
||||
获取探索数据源
|
||||
"""
|
||||
# 广播事件,请示额外的发现数据源支持
|
||||
event_data = DiscoverSourceEventData()
|
||||
|
||||
@@ -239,6 +239,7 @@ class DiscoverMediaSource(BaseModel):
|
||||
"""
|
||||
探索媒体数据源的基类
|
||||
"""
|
||||
name: str = Field(..., description="数据源名称")
|
||||
mediaid_prefix: str = Field(..., description="媒体ID的前缀,不含:")
|
||||
api_path: str = Field(..., description="媒体数据源API地址")
|
||||
filter_params: Optional[Dict[str, Any]] = Field(default=None, description="过滤参数")
|
||||
|
||||
Reference in New Issue
Block a user