- Drop nfo_factory, nfo_repair_service, nfo_service, series_manager_service - Delete key_resolution_service, consolidate into folder_rename_service - Remove bulk of NFO-related tests (coverage via integration tests) - Streamline SeriesApp, background_loader, initialization services - Add folder_rename_service to scheduler Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
70 lines
2.3 KiB
Python
70 lines
2.3 KiB
Python
"""NFO Management API endpoints.
|
|
|
|
Note: NFO service has been removed. All NFO endpoints return 503.
|
|
"""
|
|
from fastapi import APIRouter, HTTPException, status
|
|
|
|
router = APIRouter(prefix="/api/nfo", tags=["nfo"])
|
|
|
|
|
|
@router.get("/disabled")
|
|
async def nfo_disabled():
|
|
"""NFO endpoints disabled - NFO service removed."""
|
|
raise HTTPException(
|
|
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
|
detail="NFO service has been removed. Use series management endpoints instead."
|
|
)
|
|
|
|
|
|
@router.post("/batch/create")
|
|
async def batch_create_nfo():
|
|
"""NFO endpoints disabled - NFO service removed."""
|
|
raise HTTPException(
|
|
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
|
detail="NFO service has been removed. Use series management endpoints instead."
|
|
)
|
|
|
|
|
|
@router.post("/{serie_id}/create")
|
|
async def create_nfo(serie_id: str):
|
|
"""NFO endpoints disabled - NFO service removed."""
|
|
raise HTTPException(
|
|
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
|
detail="NFO service has been removed. Use series management endpoints instead."
|
|
)
|
|
|
|
|
|
@router.get("/{serie_id}/status")
|
|
async def get_nfo_status(serie_id: str):
|
|
"""NFO endpoints disabled - NFO service removed."""
|
|
raise HTTPException(
|
|
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
|
detail="NFO service has been removed. Use series management endpoints instead."
|
|
)
|
|
|
|
|
|
@router.delete("/{serie_id}/delete")
|
|
async def delete_nfo(serie_id: str):
|
|
"""NFO endpoints disabled - NFO service removed."""
|
|
raise HTTPException(
|
|
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
|
detail="NFO service has been removed. Use series management endpoints instead."
|
|
)
|
|
|
|
|
|
@router.get("/poster/{serie_id}")
|
|
async def get_nfo_poster(serie_id: str):
|
|
"""NFO endpoints disabled - NFO service removed."""
|
|
raise HTTPException(
|
|
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
|
detail="NFO service has been removed. Use series management endpoints instead."
|
|
)
|
|
|
|
|
|
@router.get("/fanart/{serie_id}")
|
|
async def get_nfo_fanart(serie_id: str):
|
|
"""NFO endpoints disabled - NFO service removed."""
|
|
raise HTTPException(
|
|
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
|
detail="NFO service has been removed. Use series management endpoints instead."
|
|
) |