Skip to content
Discussion options

You must be logged in to vote

For many tasks don't need to add new features to the library. You can implement own function based on existing the library functions. Especially if you know programming (JavaScript).

According request description, the next function can help. Just insert id in the first line and set trigger.

function removeBanTracks() {
  let banTracks = Source.getPlaylistTracks('', 'id');
  Playlist.getPlaylistArray().forEach(p => {
    if (p.owner.id == User.getId()) {
      let tracks = Source.getPlaylistTracks('', p.id);
      Filter.removeTracks(tracks, banTracks);
      if (p.tracks.total > tracks.length) {
        Playlist.saveWithUpdate({ id: p.id, tracks: tracks, });
      }
    }
  });
}

The two …

Replies: 1 comment 1 reply

Comment options

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

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