Skip to content

How to alternate a variable number of playlists? #218

Discussion options

You must be logged in to vote

take more than 1 hour

What algorithm do you use? With my experience, 99% tasks can be resolve about 6 minutes. Including new releases, EveryNoise and many other.

for 3 or more source playlists

In order to alternate more than 2 playlists just use mixinMulti.

function debug() {
  let trackGroups = [
    '37i9dQZF1DX26DKvjp0s9M',
    '37i9dQZF1DX9LbdoYID5v7',
    '37i9dQZF1DX873GaRGUmPl'
  ].map(id => {
    let plsTracks = Source.getPlaylistTracks('', id)

    // your filters for plsTracks here 

    return plsTracks
  })

  let result = Combiner.mixinMulti({
    source: trackGroups,
    inRow: [2, 1, 1], // count elements = count playlist ids
    toLimitOn: true
  });

  Playlist.saveWi…

Replies: 3 comments 2 replies

Comment options

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

Answer selected by froggeric
Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants