Skip to content

Creating favourite songs playlists for archiving #150

Discussion options

You must be logged in to vote

Set trigger to function logFavoriteSongs (is saving snapshot of present favorite tracks and append to last with dedup).
In dependence from your activity choose period. If every day, tracks that liked and removed in one day dont push to cache. You can set an hour. But such fleeting tracks dont make sense. In case day of week can lost many tracks that liked and removed before to create new snapshot.

Constant COUNT_TRACKS is how many last favorite tracks need to check. If you can save more than 50 tracks in trigger period, increase value. And insert id for playlist with ban tracks.

function logFavoriteSongs() {
  const FILENAME = 'ArchiveFavoriteSongs';
  const COUNT_TRACKS = 50;

  let banT…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ultrlight
Comment options

@Chimildic
Comment options

@ultrlight
Comment options

@Chimildic
Comment options

@ultrlight
Comment options

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