INNER CODE UNIT · Python

api_meta

xcodian/youtube-dl-web · server/src/server.py:54

async def api_meta(video_id: str):
    meta = query_meta(video_id)

    if meta is None:
        raise HTTPException(
            status_code=400, 
            detail="Could not get meta for requested Video ID!"
        )

    return JSONResponse(meta)


def _remove_file(path: str) -> None:
    if not (
        path.endswith('.vtt')
        or path.endswith('.srt')
        or path.endswith('.ass')
    ):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…