diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js
index c8a52e0..2993a85 100644
--- a/htdocs/js/mpd.js
+++ b/htdocs/js/mpd.js
@@ -565,6 +565,13 @@ $('.page-btn').on('click', function (e) {
e.preventDefault();
});
+function addStream() {
+ if($('#streamurl').val().length > 0) {
+ socket.send('MPD_API_ADD_TRACK,'+$('#streamurl').val());
+ }
+ $('#addstream').modal('hide');
+}
+
function confirmSettings() {
if($('#mpd_pw').val().length + $('#mpd_pw_con').val().length > 0) {
if ($('#mpd_pw').val() !== $('#mpd_pw_con').val())