mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
webamp fix
This commit is contained in:
parent
828f8b4b94
commit
565809e812
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user