module Radio:sig..end
No documentation avaible for now...
typetrack =(string * string) list * string
A track is a list of "field","value" metadatas and an uri
type error =
| |
Http of |
| |
Init of |
| |
Adjust of |
| |
Playlist |
| |
Empty |
exception Error of error
val string_of_error : error -> stringval get : string -> track listget uri performs whole process and
outputs a list of metadatas,uri
from given lastfm uriUsing this API you shall call:
The module will cache session informations and avoid redundant requests, so you might always call init and adjust.
If you call url or playlist, and anything went bad, you have to call clear to
remove cached data about this session.
val parse : string -> Lastfm.login option * (string * string option)parse uri parse the given lastfm:// uri
returns login option,(station,options option)val init : Lastfm.login option -> stringinit login initiate lastfm session
Returns the session idval adjust : string -> string -> unitadjust id station adjusts lastfm station
for given session IDval url : string -> string option -> stringurl id options returns the url of the playlistval playlist : string -> string option -> stringplaylist id options returns the raw xml content of the playlistval tracks : string -> string option -> track listtracks id options
returns a list of metadatas,urival clear : string -> unitclear id closes and clear all
informations about the given session ID