obsidian-media-db-plugin icon indicating copy to clipboard operation
obsidian-media-db-plugin copied to clipboard

Last.fm

Open oak86 opened this issue 3 years ago • 2 comments

Name Last.fm

Link https://www.last.fm/api

What does the API do/offer last.fm scrobbles the music you listen to across different apps. This would allow you to create a listening journal in Obsidian that pulls information on what you've heard and then lets you to add details to it.

  • [x] Is the API free to use
  • [ ] Does the API require authentication

oak86 avatar Jun 21 '22 12:06 oak86

It just needs an API key. Could do it the same as the OMDb API key, and also have the user put their username in a field.

For implementation, I'd add a new command called Create Media DB entry (Music Stats), having a drop-down for the different kinds of options. These options can include:

  • Loved Tracks
  • Recent Tracks
  • Top Albums
  • Top Artists
  • Top Tags
  • Top Tracks

Just listing some of the user endpoints.

Would also want a means to refresh this information. When selecting an option that's been selected before, give the user an option to either refresh the information, or create a new note. Primarily done if people want to maintain a history.

If that sounds good I'll start on it!

AkhirAlibhai avatar Mar 03 '23 00:03 AkhirAlibhai

The general search functionality can be added to the existing API structure. For the account-specific things a command called something like Import last.fm listening data and then a modal where the user can select which data to import would be the best option. The modal could also include a toggle to create a new note or override the existing note.

mProjectsCode avatar Mar 03 '23 11:03 mProjectsCode