Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

NZRadioToLastFM

Scrobbles songs played by MediaWorks radio stations in New Zealand to last.fm

An example of this code in action can be found a TheEdgeNZ last.fm

Usage

As is shown in test.rb

radioStation =  RadioStation.new( :url => "url", :username => "lastFmUsername", :password => "lastFmPassword")
radioStation.scrobbleCurrentSong

Simple Last.Fm api calls

lastFm = LastFM(api_key, secret) #initializatoin
lastFm.getRecentTrack(username) #returns the track name and artist most recently played by "username"
lastFm.scrobble(username, password, args={}) #scrobbles the current song (as long as it includes a title and artist
lastFm.updateNowPlaying(username, password, args={}) # same as for scrobble, but updates the now playing song.

About

Scrobbles songs played by some NZ radio stations to last.fm

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages