calliope.export

Convert playlists to different serialization formats.

See also: cpe export command.

Package Contents

Functions

get_format_id(name)

convert_to_cue(playlist)

convert_to_m3u(playlist, title=None, location_required=False, extended=True)

convert_to_jspf(playlist, title=None)

convert_to_xspf(playlist, title=None)

default_title_to_filename_fn(title, format_id)

export_single_playlist(playlist, format_id, title=None)

Export to text using the given serialization format.

export_many_playlists(playlists, format_id, path, filename_fn=None)

Export multiple playlists.

calliope.export.get_format_id(name)
calliope.export.convert_to_cue(playlist)
calliope.export.convert_to_m3u(playlist, title=None, location_required=False, extended=True)
calliope.export.convert_to_jspf(playlist, title=None)
calliope.export.convert_to_xspf(playlist, title=None)
calliope.export.default_title_to_filename_fn(title, format_id)
calliope.export.export_single_playlist(playlist, format_id, title=None)

Export to text using the given serialization format.

The supported formats are: CUE, M3U, JSPF and XSPF.

calliope.export.export_many_playlists(playlists, format_id, path, filename_fn=None)

Export multiple playlists.

Each item with the playlist.title attribute set is treated as the first item in a new playlist.