GUPnPAV.CDSLastChangeParser

g GObject.Object GObject.Object GUPnPAV.CDSLastChangeParser GUPnPAV.CDSLastChangeParser GObject.Object->GUPnPAV.CDSLastChangeParser

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

parse (last_change)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class GUPnPAV.CDSLastChangeParser(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GUPnPAV.CDSLastChangeParserClass

LastChange parser for the format used in ContentDirectory:3

[class`GUPnPAV`.CDSLastChangeParser] parses XML strings from ContentDirectory’s LastChange state variable.

Unfortunately this is different enough from the renderer’s LastChange syntax that it warrants a different parser.

classmethod new()
Returns:

A new instance of [class`GUPnPAV`.CDSLastChangeParser].

Return type:

GUPnPAV.CDSLastChangeParser

Create a new [class`GUPnPAV`.CDSLastChangeParser].

This parser is able to parse LastChange as defined in the ContentDirectory:3 specification.

parse(last_change)
Parameters:

last_change (str) – XML string to parse

Raises:

GLib.Error

Returns:

List of [struct`GUPnPAV`.CDSLastChangeEntry]

Return type:

[GUPnPAV.CDSLastChangeEntry]

Parse a LastChange XML document in the flavor defined by the ContentDirectory:3 specification.