Goofy: JavaScript library for Spotify API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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',
});
}
Labels:
- Labels:
-
App & Features
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page