Commit 49985019 authored by Deac Karns's avatar Deac Karns
Browse files

playlist now shown after track is added

parent 6d3a5033
......@@ -330,16 +330,13 @@ const ensureTokens = function() {
const ProgramPlaylist = function(playlist=null) {
if(!playlist){
console.log('no playlist');
dynpl = selectPlaylist()
}else{
console.log('yes playlist');
dynpl = new Promise(resolve => reslove())
dynpl = new Promise(resolve => resolve(playlist))
}
return dynpl
.then( pl => {
console.log('here');
return getPlaylistTracks(pl)
})
.then( t => {
......@@ -378,13 +375,9 @@ const runProgram = function(){
.then( playlist => {
return addTrackToPlaylist(track, playlist)
})
.then(tst => {
return tst
})
})
.then( playlist => {
ProgramPlaylist(playlist)
process.exit()
})
})
}
......@@ -403,7 +396,6 @@ const runProgram = function(){
console.log(colors.magenta(' URL: ')+track.track_url);
})
})
.finally( () => process.exit())
}
else if(program.playlist){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment