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 -> string
val get : string -> track list
get 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 -> string
init login
initiate lastfm session
Returns the session idval adjust : string -> string -> unit
adjust id station
adjusts lastfm station
for given session IDval url : string -> string option -> string
url id options
returns the url of the playlistval playlist : string -> string option -> string
playlist id options
returns the raw xml content of the playlistval tracks : string -> string option -> track list
tracks id options
returns a list of metadatas,urival clear : string -> unit
clear id
closes and clear all
informations about the given session ID