Skip to content

Saved Album Tracks filtered by Last.fm top artists #237

Discussion options

You must be logged in to vote
  1. Default Lastfm.getTopArtists don't give top for 5year period. Because last.fm API have only such parameters: overall, 7day, 1month, 3month, 6month, 12month. But goofy have getCustomTop.
  2. In order to keep albums only from top artists, we need to use removeArtists with invert = true.
  3. In case with saved albums, tracks are located in response. Thus need to only map loop. With general albums probably require additional requests.
function createPlaylistFromSavedAlbumsByTopArtists() {
  let savedAlbums = Source.getSavedAlbums()
  let topArtists = Lastfm.getCustomTop({
    type: 'artist',
    user: KeyValue.LASTFM_LOGIN,
    from: '2022-01-01',
    to: '2022-12-31',
    count: 25,
  })
  Filter.r…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BuckeyePay
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