diff --git a/server/public/assets/css/style.css b/server/public/assets/css/style.css index ab77793e..47353dd0 100755 --- a/server/public/assets/css/style.css +++ b/server/public/assets/css/style.css @@ -394,7 +394,7 @@ li.disabled span { width: 76%; } -.import-soundcloud, .import-soundcloud:active, .import-soundcloud:visited, .export-soundcloud:visited { +.import-soundcloud, .import-soundcloud:active, .import-soundcloud:visited, .export-soundcloud, .export-soundcloud:visited { background: #f96200; } diff --git a/server/public/assets/js/list.js b/server/public/assets/js/list.js index a45ec0c3..23b0dec0 100755 --- a/server/public/assets/js/list.js +++ b/server/public/assets/js/list.js @@ -608,11 +608,7 @@ var List = { exportToSoundCloud: function(thisSong, i) { console.log(thisSong, i); - if(thisSong == undefined) { - if(full_playlist.length > 0) { - List.exportToSoundCloud(full_playlist[0], 1); - } - } else if(i != undefined && i == full_playlist.length) { + if(i >= full_playlist.length) { SC_player.post('/playlists', { playlist: { title: decodeURIComponent(channel.toLowerCase()) + ' - Zoff', @@ -624,6 +620,10 @@ var List = { List.found = []; List.not_found = []; }); + } else if(thisSong == undefined) { + if(full_playlist.length > 0) { + List.exportToSoundCloud(full_playlist[0], 1); + } } else if(thisSong != undefined && i != undefined) { var isFound = false; if(thisSong.source == "soundcloud") {