Skip to content

Commit

Permalink
Set title to filename instead of filepath in the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Feb 23, 2024
1 parent 75bf3d8 commit 5792d14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pystream/routers/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))}"
}
Expand Down
2 changes: 1 addition & 1 deletion pystream/templates/land.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FastAPI video streaming</title>
<title>{{ video_title }}</title>
<meta property="og:type" content="VideoStreaming">
<meta name="keywords" content="Python, streaming, fastapi, JavaScript, HTML, CSS">
<meta name="author" content="Vignesh Rao">
Expand Down

0 comments on commit 5792d14

Please sign in to comment.