From 565809e8123ce98d79113b3742ce4935d7aea0ef Mon Sep 17 00:00:00 2001 From: Paul Sori Date: Sun, 21 Oct 2018 03:45:09 -0400 Subject: [PATCH] webamp fix --- public/js/winamp.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/public/js/winamp.js b/public/js/winamp.js index ad46626..5f61bd7 100644 --- a/public/js/winamp.js +++ b/public/js/winamp.js @@ -911,7 +911,6 @@ $(document).ready(function () { function addSongWiz(filepath, metadata, lookupMetadata) { // Escape filepath var rawFilepath = filepath; - console.log(rawFilepath) filepath = filepath.replace(/\%/g, "%25"); filepath = filepath.replace(/\#/g, "%23"); if (filepath.charAt(0) === '/') { @@ -923,16 +922,8 @@ $(document).ready(function () { url = url + '?token=' + MSTREAMAPI.currentServer.token; } - var newSong = { - url: url, - filepath: filepath, - metadata: metadata - }; - var check = document.getElementById("webamp-iframe").contentWindow; - console.log(check.lol) - - check.webampCtrl.appendTracks([{ url: 'http://localhost:3030' + url }]); + check.webampCtrl.appendTracks([{ url: window.location.origin + url }]); // MSTREAMPLAYER.addSong(newSong);