Tasks
Tasks are the building blocks of pipelines. Each task performs a specific operation on tracks.
Source Tasks
Section titled “Source Tasks”Source tasks provide tracks to your pipeline.
| Task | Description |
|---|---|
| Get Playlist Tracks | Fetch tracks from a Spotify playlist |
| Get Album Tracks | Fetch tracks from an album |
| Get Artist Top Tracks | Fetch an artist’s most popular tracks |
| Get Saved Tracks | Fetch your liked/saved tracks |
Transform Tasks
Section titled “Transform Tasks”Transform tasks modify the track list.
Filtering
Section titled “Filtering”| Task | Description |
|---|---|
| Filter Tracks | Keep tracks matching specific criteria |
| Remove Tracks | Remove tracks matching specific criteria |
Filter criteria include:
- Track name, artist name, album name
- Release date (before, after, between)
- Popularity (above, below threshold)
- Duration (longer than, shorter than)
- Explicit content flag
Sorting
Section titled “Sorting”| Task | Description |
|---|---|
| Sort Tracks | Order tracks by a field (ascending or descending) |
| Shuffle Tracks | Randomize track order |
| Reverse Tracks | Reverse the current order |
Sort fields include: name, artist, album, release date, popularity, duration.
Deduplication
Section titled “Deduplication”| Task | Description |
|---|---|
| Deduplicate Tracks | Remove duplicate tracks |
Deduplication strategies:
- By track ID (exact match)
- By name and artist (fuzzy match)
Limiting
Section titled “Limiting”| Task | Description |
|---|---|
| Limit Tracks | Keep only the first N tracks |
| Skip Tracks | Skip the first N tracks |
Combining
Section titled “Combining”| Task | Description |
|---|---|
| Merge Tracks | Combine tracks from multiple sources |
Output Tasks
Section titled “Output Tasks”Output tasks save the results.
| Task | Description |
|---|---|
| Save to Playlist | Save tracks to a Spotify playlist |
Options:
- Replace all tracks in the playlist
- Append to existing tracks
- Create a new playlist if it doesn’t exist