Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Goofy: JavaScript library for Spotify API

Goofy: JavaScript library for Spotify API

goofy.png

 

OK, maybe it's time to share it here.

Goofy is a very useful tool for advanced users.

In some ways it repeats Smarter Playlists, but is more fun, because it lets you write your own stuff.

Documentation is in Russian, so you have to use Chrome extension.

Discussions are here.

Installation is through Apps Script, it is safe and secured by Google.

A simple example of code, so you can understand, is it for you or not. If you know JavaScript the possibilities are almost endless. Beginners can copy-paste code and put their playlists IDs. Happy scripting ‌😎

 

function createFirstPlaylist() {
 // 1 - collect playlists
 let mixTracks = Source.getTracks([
     { name: 'Daily Mix 1', id: 'playlistId' },
     { name: 'Daily Mix 2', id: 'playlistId' },
 ]);
 let recomTracks = Source.craftTracks(mixTracks);
 let savedTracks = Source.getSavedTracks();   

 // 2 - processing
 Combiner.push(mixTracks, recomTracks);   
 Filter.removeTracks(mixTracks, savedTracks);
 Selector.keepRandom(mixTracks, 20);
 
 // 3 - create new playlist
 Playlist.saveWithReplace({
     // id: 'newPlaylistId',
     name: 'My first auto playlist',
     tracks: mixTracks,
     randomCover: 'update',
 });
}

 

Reply
5 Replies

This is a great programme. It would be great if somewhere down the line some of the instructions could be translated officially because it takes a little while to understand but other than that it's a great programme.

 

I think it's time for me to properly learn javascript!

 

Thanks to the developer 🙂


@hywelinesh wrote:

It would be great if somewhere down the line some of the instructions could be translated officially

Google is doing pretty good job with the translation. But if you have additional questions, you can always ask here. Developer is very responsive.

Didn't realise there was an English discussion section. Big thanks to the developer! 👏👏

Big thanks to the developer!

There is also a good way to say thank you, at your discretion 😉

Thanks for letting me know 😊

Suggested posts

Type a product name