epsil / spotgen

Spotify Playlist Generator
https://epsil.github.io/spotgen/
Other
130 stars 26 forks source link

Chaining API calls #4

Open buremba opened 7 years ago

buremba commented 7 years ago

Is there any way to create a playlist with chaining the calls?

Let's say that I want to fetch similar artists, get top 5 songs of each artist and sort the songs by popularity.

The following snippet doesn't seem to work.

#order by popularity
#top5
#similar Aphex Twin
epsil commented 7 years ago

It is a good idea. Currently, there is no syntax for chaining, but I welcome suggestions.

In the meantime, you can achieve what you want with:

#order by popularity
#similar5 Aphex Twin