From 3b018da07ed3ae8ff61bfd894ddb966003fed23f Mon Sep 17 00:00:00 2001 From: Sijmen Date: Sat, 13 May 2023 14:51:22 +0200 Subject: [PATCH] Fix URL encoding showing up in title --- Cargo.lock | 2 ++ Cargo.toml | 2 +- templates/player.html | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c1a9eed..a7bd747 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -94,6 +94,8 @@ dependencies = [ "humansize", "num-traits", "percent-encoding", + "serde", + "serde_json", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 66f787a..15cf950 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/vijfhoek/empede" [dependencies] anyhow = "1.0.70" -askama = { version = "0.12.0", default-features = false } +askama = { version = "0.12.0", default-features = false, features = ["serde-json"] } askama_tide = "0.15.0" async-std = { version = "1.12.0", features = ["attributes"] } infer = { version = "0.13.0", default-features = false } diff --git a/templates/player.html b/templates/player.html index 0e996e0..cd3bd1f 100644 --- a/templates/player.html +++ b/templates/player.html @@ -57,9 +57,9 @@