Giter Site home page Giter Site logo

music_plugin's Introduction

music_plugin

This is an image

WFMU Radio to LAST.FM

User needs: LAST.FM account, last.fm credentials (Get API Key and Secret)

Description

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:

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.

Functionality

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.

music_plugin's People

Contributors

toskan avatar ryleysill93 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.