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 @@
- +