recommend_from_playlist
Recommend new songs based on a whole YouTube Music playlist, avoiding tracks already liked or in any playlist.
Instructions
Recommend new songs based on an entire playlist.
Randomly samples up to seed_sample_size tracks from the playlist as seeds (the whole playlist if it's smaller), runs the same multi-signal candidate generation as recommend_from_song for each, and pools/ranks the results. Never returns a song already in Liked Music, already in the source playlist, or already in ANY other of the user's playlists.
The library exclusion set is cached for speed; newly liked songs are always honoured, but call refresh_library() after adding songs to a playlist by other means.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| playlist_id | Yes | ||
| seed_sample_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |