module Playlist_parser: sig
.. end
Plug for playlist parsing, in which src/playlists
plugins come.
val log : Dtools.Log.t
val conf_playlists : Dtools.Conf.ut
val conf_mime_types : Dtools.Conf.ut
val conf_cue_in_metadata : string Dtools.Conf.t
val conf_cue_out_metadata : string Dtools.Conf.t
type
playlist = ((string * string) list * string) list
A playlist is list of metadatas,uri
type
plugin = {
|
strict : bool ; |
|
parser : ?pwd:string -> string -> playlist ; |
}
A plugin is a boolean and a parsing function
val parsers : plugin Plug.plug
Parsers are given a string and return a list of metadatas,uri, if possible.
val get_file : ?pwd:string -> string -> string
exception Exit of (string * playlist)
val search_valid : ?pwd:string -> string -> string * playlist
Get a valid parser for string
.
The validity is not based on file type but only on success of the
parser instantiation.
Being based on file extension is weak, and troublesome when accessing a
remote file -- that would force us to create a local temporary file with the
same extension.