Safe Haskell | None |
---|---|
Language | Haskell98 |
A client for scrobbling, based upon the Audioscrobbler Realtime Submission protocol v1.2 http://www.audioscrobbler.net/development/protocol/
Example:
import Scrobble.Client import Data.Time example = do client <- newClient Details { detPassword = "YOURPASS" , detUsername = "YOURUSER" , detClient = "qlb" , detVersion = "0.9.2" , detServer = defaultServer } nowPlaying client NowPlaying { npArtist = "Kasabian" , npTrack = "Ladies and Gentlemen" , npAlbum = Just "West Ryder Pauper Lunatic Asylum" , npLength = Just 288 , npPosition = Nothing , npMusicBrainz = Nothing } timestamp <- getCurrentTime submitTracks client [Submission { subArtist = "Kasabian" , subTrack = "Ladies and Gentlemen" , subTimestamp = timestamp , subSource = UserChosen , subRating = Nothing , subLength = Just 288 , subAlbum = Just "West Ryder Pauper Lunatic Asylum" , subPosition = Nothing , subMusicBrainz = Nothing }]
- newClient :: Details -> IO Client
- nowPlaying :: Client -> NowPlaying -> IO ()
- submitTracks :: Client -> [Submission] -> IO ()
- defaultServer :: URI
- module Scrobble.Types
Documentation
nowPlaying :: Client -> NowPlaying -> IO () Source
Send a now playing message. Throws ScrobblerError.
submitTracks :: Client -> [Submission] -> IO () Source
Submit track(s). Throws ScrobblerError.
Default Audioscrobbler server: http://post.audioscrobbler.com/
module Scrobble.Types