diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-11-15 23:44:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-16 01:20:38 +0100 |
| commit | 64f34dcae0a69f5732f9298ec3c121e91e388422 (patch) | |
| tree | 616e45805a6528b7037c4495bee7cf135195a460 | |
| parent | 55c9a7786b9b9ed6687e555a1c236208549838e7 (diff) | |
Fix index.html generation, broken since the switch to fmt.
| -rw-r--r-- | src/lib/http_server.cc | 4 | ||||
| -rw-r--r-- | web/index.html | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/http_server.cc b/src/lib/http_server.cc index cf3f9756a..da495a8aa 100644 --- a/src/lib/http_server.cc +++ b/src/lib/http_server.cc @@ -96,7 +96,9 @@ Response HTTPServer::get(string const& url) { if (url == "/") { - return Response(200, fmt::format(dcp::file_to_string(resources_path() / "web" / "index.html"), variant::dcpomatic_player())); + auto page = dcp::file_to_string(resources_path() / "web" / "index.html"); + boost::algorithm::replace_all(page, "TITLE", variant::dcpomatic_player()); + return Response(200, page); } else if (url == "/api/v1/status") { nlohmann::json json; { diff --git a/web/index.html b/web/index.html index 6dd278e07..bf5359515 100644 --- a/web/index.html +++ b/web/index.html @@ -76,8 +76,8 @@ td { } </style> +<title>TITLE</title> - <title>%1</title> </head> <body> <button name="play" value="play" onclick="play()">Play</button> |
