Skip to content

Enable LastFM Recommendations #135

@Batwam

Description

@Batwam

I was wondering, would there be value in loading lastFM suggestions playlists in addition to listenbrainz.

These playlists aren't very well documented but based on my experimentations, Recommended,Mix, Library and Neighbours are available as json. This public data using the lastfm username, no token needed:

https://www.last.fm/player/station/user/$lastFM_user/recommended

https://www.last.fm/player/station/user/$lastFM_user/mix

https://www.last.fm/player/station/user/$lastFM_user/library

https://www.last.fm/player/station/user/$lastFM_user/neighbours

As far as I know, the data doesn't include any listenBrainzID but it does include a youtube link which should make it very easy to download using yt-dlp:


{
  "_name": "False Alarm",
  "url": "/music/The+Weeknd/_/False+Alarm",
  "duration": 220,
  "artists": [
    {
      "_name": "The Weeknd",
      "url": "/music/The+Weeknd",
      "name": "The Weeknd"
    }
  ],
  "_playlinks": [
    {
      "affiliate": "youtube",
      "id": "CW5oGRx9CLM",
      "url": "https://www.youtube.com/watch?v=CW5oGRx9CLM",
      "source": "global_suggestion"
    }
  ],
  "spelling_id": 874859429,
  "name": "False Alarm",
  "playlinks": [
    {
      "affiliate": "youtube",
      "id": "CW5oGRx9CLM",
      "url": "https://www.youtube.com/watch?v=CW5oGRx9CLM",
      "source": "global_suggestion"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions