Skip to content

Get the complete discographies from all artists in a playlist #147

Discussion options

You must be logged in to vote

Just insert playlist id and run

function createDiscographyByArtists() {
  let tracks = Source.getPlaylistTracks('', 'id');
  let discographies = Source.getArtistsTracks({
    artist: {
      followed_include: false,
      include: tracks.map(t => t.artists[0]),
    },
    album: {
      groups: 'album,single',
    },
  });

  Filter.dedupTracks(discographies);
  Playlist.saveWithReplace({
    name: 'Discographies',
    tracks: discographies,
    randomCover: 'update',
  });
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ffmusic
Comment options

Answer selected by ffmusic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants