package xmlplaylist

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module XmlplaylistSource

Generic xml playlist parsing module

This module implements basic playlist parsing for various xml formats.

Currently supported formats are: podcast (rss), xspf, smil asx

Types and exceptions

Sourcetype error =
  1. | XmlError of string
  2. | Empty
  3. | UnknownType
  4. | Internal
Sourceexception Error of error
Sourcetype format =
  1. | Podcast
  2. | Xspf
  3. | Smil
  4. | Asx

Functions

Sourceval string_of_error : error -> string

Get meaning of Error e

Sourceval tracks : ?format:format -> string -> ((string * string) list * string) list

tracks data performs whole process and outputs a list of metadatas,uri from given xml data string

All metadatas are what is provided by the playlist The only variable name that is changed is the author because each formats has its own field for that. The module will use "artist".

Order of tracks is preserved.

format is an optional argument, used to force format detection. Otherwise. detect_format is used.

Sourceval detect_format : string -> format

Try to detect the format automatically.