-
+
diff --git a/nginx/proxy.conf b/nginx/proxy.conf
index ec6820c..47949d8 100644
--- a/nginx/proxy.conf
+++ b/nginx/proxy.conf
@@ -30,9 +30,9 @@ location ~* ^/proxy-stream/(.*?)/(.*?)/(.*?)/(.*?)/(.*) {
# backend does not support Content-Disposition
# headers used to specify file name browsers use
# when save content to the disk
- proxy_hide_header Content-Type;
- proxy_hide_header Content-Disposition;
- add_header Content-Disposition 'attachment; filename=audio.mp3';
+ proxy_ignore_headers Cache-Control;
+ #add_header Content-Disposition 'attachment; filename=audio.mp3';
+ #add_header Connection 'close';
# Do not touch local disks when proxying
# content to clients
diff --git a/public/javascripts/player.js b/public/javascripts/player.js
index 07c82c4..df82813 100644
--- a/public/javascripts/player.js
+++ b/public/javascripts/player.js
@@ -52,7 +52,7 @@ function formatTime(sec) {
return m +':'+ (s < 10 ? '0' : '') +s;
}
function playTrack(artist, track, id) {
- $(audio).attr('src', '/listen/'+ id +'/');
+ $(audio).attr('src', '/listen/'+ id +'.mp3');
$('#player .track-title').html(artist +' — '+ track);
$('#player .time-played').html('0:00');
$('#player .time-left').html('0:00');
@@ -79,4 +79,4 @@ function addToPlaylist(artist, track, length, id) {
if ($('#playlist ul li').length == 1) {
playTrack(artist, track, id);
}
-}
\ No newline at end of file
+}