Enums

Details

class TotemPlParser.ParserError(value)

Bases: GObject.GEnum

Allows you to differentiate between different errors occurring during file operations in a TotemPlParser.Parser.

classmethod quark()
Return type:

int

NO_DISC = 0

Error attempting to open a disc device when no disc is present

MOUNT_FAILED = 1

An attempted mount operation failed

EMPTY_PLAYLIST = 2

Playlist to be saved is empty

class TotemPlParser.ParserResult(value)

Bases: GObject.GEnum

Gives the result of parsing a playlist.

UNHANDLED = 0

The playlist could not be handled.

ERROR = 1

There was an error parsing the playlist.

SUCCESS = 2

The playlist was parsed successfully.

IGNORED = 3

The playlist was ignored due to its scheme or MIME type (see TotemPlParser.Parser.add_ignored_scheme() and TotemPlParser.Parser.add_ignored_mimetype()).

CANCELLED = 4

Parsing of the playlist was cancelled part-way through.

class TotemPlParser.ParserType(value)

Bases: GObject.GEnum

The type of playlist a TotemPlParser.Parser will parse.

PLS = 0

PLS parser

M3U = 1

M3U parser

M3U_DOS = 2

M3U (DOS linebreaks) parser

XSPF = 3

XSPF parser

IRIVER_PLA = 4

iRiver PLA parser