User needs: LAST.FM account, last.fm credentials (Get API Key and Secret)
This extension allows WFMU radio listeners to track what they are listening to. It sends currently playing song info to the recent tracks played in their last.fm account. The user can also favorite songs on WFMU playlists and those will be added to their loved tracks in their last.fm account.
The extension can track what is being listened to on these sites:
-
on the WFMU page with the currently playing playlist (playlist and comments)
The listener can create last.fm credentials in their last.fm account to get an API key and secret. There will be prompts in the extension pop-up that allows them to do so. The link and required field info are provided in the pop-up to facilitate it.
Visit the support page for detailed user instructions.
This extension saves the user's api key and secret in chrome storage after they enter it whereupon the last.fm url is opened requesting permission to connect the application. The session key is retrieved when the permission is granted. The user can start using the extension thereafter and doesn't need to re-enter that information.
The extension uses last.fm's api love.track and scrobble.track methods to accomplish its functionality.
MutationObserver is used to track when a user stars (favorites) a song on a WFMU playlist, which prompts the love.track api to send that song's info to their last.fm loved tracks in their last.fm account. Mutation Observer is also used to register when new songs are added to the WFMU currently playing list and gather the info for the currently playing track. That info is then sent to the last.fm recently played list of the listener using the scrobble.track api.
The WFMU api provides the information when the music is being streamed which is then sent to the user's last.fm recently played list using scrobble.track.