show filter by default, minor ' in song name fix

This commit is contained in:
stjet
2025-02-03 07:14:21 +00:00
parent c605315530
commit 4ebc65d6c9
2 changed files with 3 additions and 2 deletions

View File

@@ -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),