summary refs log tree commit diff
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2022-08-26 19:01:24 +0200
committerpdp8 <pdp8@pdp8.info>2022-08-26 19:01:24 +0200
commitfc32ef98dfb83b69d02a31387cf4cdae96e520cd (patch)
tree57bef4bec4b1574e48335a9ca09b2ebc27f9ae79
parent5c872a781b7585dba787b32c08ac9423ee4600cc (diff)
mp3 path fixed
-rwxr-xr-xhtml.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.rb b/html.rb
index 0ee1847..e39f5fc 100755
--- a/html.rb
+++ b/html.rb
@@ -48,7 +48,7 @@ def music_html
     html += "<img class='cover' src='#{cover}' alt='cover'>"
     html += "<table>"
     Dir[File.join(dir, "*mp3")].each do |mp3|
-      mp3 = "/" + mp3.sub(ROOT, '')
+      mp3 = mp3.sub(ROOT, '')
       html += "<tr>"
       html += "<td>
         <audio controls>