diff --git a/pystream/routers/video.py b/pystream/routers/video.py index fc1662c..efc1e51 100644 --- a/pystream/routers/video.py +++ b/pystream/routers/video.py @@ -95,7 +95,7 @@ async def stream_video(request: Request, ) if pure_path.exists(): attrs = { - "request": request, "video_title": video_path, + "request": request, "video_title": pure_path.name, "home": config.static.home_endpoint, "logout": config.static.logout_endpoint, "path": f"{config.static.streaming_endpoint}?{config.static.query_param}={urlparse.quote(str(pure_path))}" } diff --git a/pystream/templates/land.html b/pystream/templates/land.html index 0e19850..659d498 100644 --- a/pystream/templates/land.html +++ b/pystream/templates/land.html @@ -3,7 +3,7 @@ - FastAPI video streaming + {{ video_title }}