GUPnPAV.DIDLLiteParser¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnPAV.DIDLLiteParser(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
A new
GUPnPAV.DIDLLiteParser
object.- Return type:
- parse_didl(didl)¶
- Parameters:
didl (
str
) – The DIDL-Lite XML string to be parsed- Raises:
- Returns:
True
on success.- Return type:
Parses DIDL-Lite XML string didl, emitting the
::object-available
,::item-available
and::container-available
signals appropriately during the process.
- do_container_available(container) virtual¶
- Parameters:
container (
GUPnPAV.DIDLLiteContainer
) –
- do_item_available(item) virtual¶
- Parameters:
item (
GUPnPAV.DIDLLiteItem
) –
- do_object_available(object) virtual¶
- Parameters:
object (
GUPnPAV.DIDLLiteObject
) –
Signal Details¶
- GUPnPAV.DIDLLiteParser.signals.container_available(d_i_d_l_lite_parser, container)¶
- Signal Name:
container-available
- Flags:
- Parameters:
d_i_d_l_lite_parser (
GUPnPAV.DIDLLiteParser
) – The object which received the signalcontainer (
GUPnPAV.DIDLLiteContainer
) – The now availableGUPnPAV.DIDLLiteContainer
The
::container-available
signal is emitted each time a container is found in the DIDL-Lite XML being parsed.
- GUPnPAV.DIDLLiteParser.signals.item_available(d_i_d_l_lite_parser, item)¶
- Signal Name:
item-available
- Flags:
- Parameters:
d_i_d_l_lite_parser (
GUPnPAV.DIDLLiteParser
) – The object which received the signalitem (
GUPnPAV.DIDLLiteItem
) – The now availableGUPnPAV.DIDLLiteItem
The
::item-available
signal is emitted each time an item is found in the DIDL-Lite XML being parsed.
- GUPnPAV.DIDLLiteParser.signals.object_available(d_i_d_l_lite_parser, object)¶
- Signal Name:
object-available
- Flags:
- Parameters:
d_i_d_l_lite_parser (
GUPnPAV.DIDLLiteParser
) – The object which received the signalobject (
GUPnPAV.DIDLLiteObject
) – The now availableGUPnPAV.DIDLLiteObject
The
::object-available
signal is emitted each time an object is found in the DIDL-Lite XML being parsed.