Files
streamrip-ui/backend/app/api/podcast.py
T

14 lines
407 B
Python

from fastapi import APIRouter, HTTPException
from app.services.streamrip_service import get_podcast_details
router = APIRouter(prefix="/api/podcast", tags=["podcast"])
@router.get("/{show_id}")
async def podcast_detail(show_id: str):
try:
return await get_podcast_details(show_id)
except Exception as e:
raise HTTPException(status_code=502, detail=f"Podcast lookup failed: {e}")