Safe Haskell | None |
---|
Scrobbling data types.
- data Config = Config {}
- data Handlers = Handlers {
- handleHandshake :: Session -> IO ()
- handleExpire :: Session -> IO ()
- handleNowPlaying :: Session -> NowPlaying -> IO ()
- handleSubmissions :: Session -> [Submission] -> IO Bool
- data Session = Session {}
- data NowPlaying = NowPlaying {}
- data Submission = Submission {}
- data Rating
- data Source
- data Response
- data Client = Client {}
- data Details = Details {
- detPassword :: String
- detUsername :: String
- detClient :: String
- detVersion :: String
- detServer :: URI
- data ScrobblerError
Documentation
Server configuration.
Config | |
|
Event handlers.
Handlers | |
|
A scrobbling session.
Session | |
|
data Submission Source
A track submission.
Submission | |
|
A rating of a track.
Note: Currently, a web-service must also be called to set love/ban status. We anticipate that this will be phased out soon, and the submission service will handle the whole process.
The source of the track. Required, must be one of the following codes:
Please note, for the time being, sources other than P and L are not supported.
UserChosen | Chosen by the user |
NonPersonlizedBroadcast | Non-personalised broadcast (e.g. Shoutcast, BBC Radio 1) |
Personalized | Personalised recommendation except Last.fm (e.g. Pandora, Launchcast) |
LastFm | Last.fm (any mode). In this case, the 5-digit Last.fm recommendation key must be appended to this source ID to prove the validity of the submission (for example, o[0]=L1b48a). |
Unknown | Source unknown. |
A scrobbling client.
Details for creating a scrobbling client.
Details | |
|