- Add FastAPI server for video metadata registration - PostgreSQL database models for videos, video_streams, audio_streams, subtitle_streams - Batch registration script for .probe.json files - RESTful API endpoints for CRUD operations - Search functionality by title, artist, codec, resolution
19 lines
383 B
Python
19 lines
383 B
Python
from fastapi import FastAPI
|
|
from app.api.routes import videos
|
|
from app.database import engine, Base
|
|
|
|
Base.metadata.create_all(bind=engine)
|
|
|
|
app = FastAPI(
|
|
title="Video Register API",
|
|
description="API for registering and searching video metadata",
|
|
version="1.0.0",
|
|
)
|
|
|
|
app.include_router(videos.router)
|
|
|
|
|
|
@app.get("/health")
|
|
def health_check():
|
|
return {"status": "ok"}
|