From 5792d148afa76a58106b50dc4874e1db42cb298a Mon Sep 17 00:00:00 2001 From: thevickypedia Date: Fri, 23 Feb 2024 10:16:21 -0600 Subject: [PATCH] Set title to filename instead of filepath in the UI --- pystream/routers/video.py | 2 +- pystream/templates/land.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }}