Skip to content

Help with a "cleanPlaylists" function #185

Discussion options

You must be logged in to vote

Do you run function in editor mode? If there are no errors, should works.

I did refactoring in order to do more readable code.

function cleanPlaylists() {
  let savedTracks = Cache.read('SavedTracks');
  let banTracks = Source.getPlaylistTracks('', '4Ep4JuDSqaIvd2OzraWRSt');

  update('64El4b1kDhX3qrCA88fjyh', 'ambient');
  update('0UpGdnBwPgvvlvKCbcXQYK', 'blues');
  update('7z1jB6Gn8AQpkF0rz5lQjE', 'classical');
  update('63B3UYXi1ACArH4SEx1y2q', 'comedy');
  update('1wME3PNynoAuAwKSuJaloR', 'country');
  update('7svSwOpZzuIrZsCCLqg6kU', 'dance');
  update('5r1zG9WvnKFxwHk9VmAn8A', 'electronic');
  update('1Q6m8XApK0zAbwVH0ectYT', 'folk');
  update('6x1Q2oWb9H9GRMWfNSQ4eO', 'hip hop');
  

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ladywhiskers
Comment options

@Chimildic
Comment options

@ladywhiskers
Comment options

@Chimildic
Comment options

@ladywhiskers
Comment options

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