From 4ebc65d6c93d38ab3d3b237d418e8261163cb0ce Mon Sep 17 00:00:00 2001
From: stjet <49297268+stjet@users.noreply.github.com>
Date: Mon, 3 Feb 2025 07:14:21 +0000
Subject: [PATCH] show filter by default, minor ' in song name fix
---
build.ts | 1 +
templates/player.html | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/build.ts b/build.ts
index 9eea8ed..3904479 100644
--- a/build.ts
+++ b/build.ts
@@ -174,6 +174,7 @@ builder.serve_template(renderer, "/player", "player", {
{
name: song.slice(`${l.name}/`.length),
//I don't think " can be in file names... but just in case
+ //might need to do " for the html and \" for the js?
sanitized_name: song.slice(`${l.name}/`.length).replaceAll("\"", "\\\""),
favourite: l.favourites.chapters.includes(song.slice(`${l.name}/`.length)),
subbed: subbed_songs.includes(song),
diff --git a/templates/player.html b/templates/player.html
index 0d022e8..7aea62d 100644
--- a/templates/player.html
+++ b/templates/player.html
@@ -94,7 +94,7 @@
-
+