Package soovee_app :: Package forms :: Module enclformat
[frames] | no frames]

Module enclformat

SooVee Serial Audio Manger - Mp3 Playlist for the forms module plugin. It will create a valid m3u formated file.

Functions
None
write(filepath, workpath, data, cache=None, service=None)
Initialize and write m3u file header.
basestring
item(data, feed=None, service=None)
Read mp3 file's tag info to get title and length to add #EXTINF to path-filename information.
Variables
  METHOD = ('enc', 'm3u')
Tuple of type and format
  __package__ = None
Function Details

write(filepath, workpath, data, cache=None, service=None)

 

Initialize and write m3u file header.

Parameters:
  • filepath (basestring) - Local path-filename fragment.
  • workpath (basestring) - Base path-filename to store filename under.
  • data (list) - List of mp3 enclosures to put in filename.
  • cache (obj) - Unused for this format. Default None.
  • service (obj) - Unused for this format. Default None.
Returns: None
Raises:
  • TypeError - data passed was not a list

item(data, feed=None, service=None)

 

Read mp3 file's tag info to get title and length to add #EXTINF to path-filename information.

Parameters:
  • data (basestring) - mp3 filename
  • feed (basestring) - Unused for this format. Default dict.
  • service (obj) - Unused for this format. Default None.
Returns: basestring
Raises:
  • TypeError - data passed was not a basestring.

Requires: eyeD3.tag