GUPnPAV.DIDLLiteObject¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The album of this object. |
||
r/w |
The URI to album art of this object. |
||
r/w |
The artist of this object. |
||
r/w |
The author of this object. |
||
r/w |
The creator of this object. |
||
r/w |
The date of this object. |
||
r/w/co |
Pointer to the Dublin Core XML namespace registered with the XML document containing this object. |
||
r/w |
The description of this object. |
||
r/w |
The ‘dlna:dlnaManaged’ attribute |
||
r/w/co |
Pointer to the DLNA metadata namespace registered with the XML document containing this object. |
||
r/w |
The genre of this object. |
||
r/w |
The ID of this object. |
||
r/w |
The ID of the parent container of this object. |
||
r/w/co |
Pointer to the PV metadata namespace registered with the XML document containing this object. |
||
r/w |
Whether this object is restricted. |
||
r/w |
The title of this object. |
||
r/w |
The original track number of this object. |
||
r/w |
Update ID of this object. |
||
r/w |
The UPnP class of this object. |
||
r/w/co |
Pointer to the UPnP XML namespace registered with the XML document containing this object. |
||
r/w |
The write status of this object. |
||
r/w/co |
The pointer to object node in XML document. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnPAV.DIDLLiteObject(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- add_artist()¶
- Returns:
A new
GUPnPAV.DIDLLiteContributor
object. Unref after usage.- Return type:
Add a new Artist node to the self and return the associated
GUPnPAV.DIDLLiteContributor
object.
- add_author()¶
- Returns:
A new
GUPnPAV.DIDLLiteContributor
object. Unref after usage.- Return type:
Add a new author node to the self and return the associated
GUPnPAV.DIDLLiteContributor
object.
- add_creator()¶
- Returns:
A new
GUPnPAV.DIDLLiteContributor
object. Unref after usage.- Return type:
Add a new creator node to the self and return the associated
GUPnPAV.DIDLLiteContributor
object.
- add_descriptor()¶
- Returns:
A new
GUPnPAV.DIDLLiteDescriptor
object. Unref after usage.- Return type:
Creates a new descriptor, attaches it to self and returns it.
- add_resource()¶
- Returns:
A new
GUPnPAV.DIDLLiteResource
object. Unref after usage.- Return type:
Creates a new resource, attaches it to self and returns it.
- apply_fragments(current_fragments, new_fragments)¶
- Parameters:
- Returns:
Result of operation.
- Return type:
Updates object by applying new_fragments in places of current_fragments. For current_size and new_size -1 can be passed when respectively current_fragments and new_fragments are
None
terminated.
- get_album_art()¶
-
Get the URI to album art of the self.
- get_album_xml_string()¶
-
Creates a string representation of the DIDL-Lite XML fragment related to the object album.
- get_artist()¶
-
Get the artist of the self. If role is not
None
, it is set to the role of the artist if available.Deprecated since version 0.5.3: Use
GUPnPAV.DIDLLiteObject.get_artists
instead.
- get_artists()¶
- Returns:
The list of artists belonging to self, or
None
. #g_list_free the returned list after usage and unref each object in it.- Return type:
Get the artists of the self.
- get_artists_xml_string()¶
-
Creates a string representation of the DIDL-Lite XML fragments related to the object artists.
- get_author()¶
-
Get the author of the self.
Deprecated since version 0.5.3: Use
GUPnPAV.DIDLLiteObject.get_authors
instead.
- get_authors()¶
- Returns:
The list of authors belonging to self, or
None
. #g_list_free the returned list after usage and unref each object in it.- Return type:
Get the authors of the self.
- get_compat_resource(sink_protocol_info, lenient)¶
- Parameters:
- Returns:
The resource belonging to self that is comaptible with any of the protocols specified in sink_protocol_info, or
None
. Unref after usage.- Return type:
Use this function to get a resource from the self that is compatible with any of the protocols specified in the sink_protocol_info. The value of sink_protocol_info will typically be acquired from ‘Sink’ argument of ‘GetProtocolInfo’ action or ‘SinkProtocolInfo’ state-variable of a ConnectionManager service.
If lenient is
True
, the first resource in the list is returned instead ofNone
if none of resources and protocols are found to be compatible.
- get_creator()¶
-
Get the creator of the self.
- get_creators()¶
- Returns:
The list of creators belonging to self, or
None
. #g_list_free the returned list after usage and unref each object in it.- Return type:
Get the creators of the self.
- get_date_xml_string()¶
-
Creates a string representation of the DIDL-Lite XML fragment related to the object date.
- get_dc_namespace()¶
- Returns:
The pointer to DublinCore namespace in XML document.
- Return type:
Get the pointer to the DublinCore namespace registered with the XML document containing this object.
- get_description()¶
-
Get the description of the self.
- get_descriptors()¶
- Returns:
The list of descriptors belonging to self, or
None
. #g_list_free the returned list after usage and unref each object in it.- Return type:
Get the descriptors of the self.
- get_dlna_managed()¶
- Returns:
The ‘dlna:dlnaManaged’ attribute of the self.
- Return type:
Get the ‘dlna:dlnaManaged’ attribute of the self.
- get_dlna_namespace()¶
- Returns:
The pointer to DLNA namespace in XML document.
- Return type:
Get the pointer to the DLNA metadata namespace registered with the XML document containing this object.
- get_parent_id()¶
-
Get the ID of the parent of the self.
- get_properties(name)¶
- Parameters:
name (
str
) – name of the properties- Returns:
The list of property nodes by the name property_name belonging to self, or
None
. #g_list_free the returned list after usage but do not modify the contents.- Return type:
Use this function to retreive property nodes by name.
- get_pv_namespace()¶
- Returns:
The pointer to PV namespace in XML document.
- Return type:
Get the pointer to the PV metadata namespace registered with the XML document containing this object.
- get_resources()¶
- Returns:
The list of resources belonging to self, or
None
. #g_list_free the returned list after usage and unref each resource in it.- Return type:
Use this function to retreive resources from the self.
- get_restricted()¶
-
Whether the self is restricted or not.
- get_title_xml_string()¶
-
Creates a string representation of the DIDL-Lite XML fragment related to the object title.
- get_track_number()¶
- Returns:
The original track number of the self, or -1.
- Return type:
Get the original track number of the self.
- get_track_number_xml_string()¶
-
Creates a string representation of the DIDL-Lite XML fragment related to the object track number.
- get_update_id()¶
- Returns:
The update ID of the self.
- Return type:
Get the update ID of the self.
- get_upnp_class()¶
-
Get the UPnP class of the self.
- get_upnp_class_xml_string()¶
-
Creates a string representation of the DIDL-Lite XML fragment related to the object UPnP class.
- get_upnp_namespace()¶
- Returns:
The pointer to UPnP namespace in XML document.
- Return type:
Get the pointer to the UPnP namespace registered with the XML document.
- get_write_status()¶
-
Get the write status of the self.
- get_xml_node()¶
- Returns:
The pointer to object node in XML document.
- Return type:
Get the pointer to object node in XML document.
- get_xml_string()¶
- Returns:
XML representation of this object as string.
- Return type:
Get the representation of this object as an XML string.
- is_restricted_set()¶
-
Whehter the restricted attribute exists on self
- set_album_art(album_art)¶
- Parameters:
album_art (
str
) – The URI of album art
Set the URI to album art of the self to album_art.
- set_artist(artist)¶
- Parameters:
artist (
str
) – The Artist
Set the Artist of the self to artist.
Deprecated since version 0.5.3: Use
GUPnPAV.DIDLLiteObject.add_artist
instead.
- set_author(author)¶
- Parameters:
author (
str
) – The Author
Set the Author of the self to author.
Deprecated since version 0.5.3: Use
GUPnPAV.DIDLLiteObject.add_author
instead.
- set_creator(creator)¶
- Parameters:
creator (
str
) – The creator
Set the creator of the self to creator.
- set_description(description)¶
- Parameters:
description (
str
) – The description string
Set the description of the self to description.
- set_dlna_managed(dlna_managed)¶
- Parameters:
dlna_managed (
GUPnPAV.OCMFlags
) – TheGUPnPAV.OCMFlags
.
Set the ‘dlna:dlnaManaged’ attribute of the self to dlna_managed.
- set_parent_id(parent_id)¶
- Parameters:
parent_id (
str
) – The parent ID
Set the ID of the parent of the self to parent_id.
- set_restricted(restricted)¶
- Parameters:
restricted (
bool
) – The restricted status
Set the restricted status of self to restricted.
- set_track_number(track_number)¶
- Parameters:
track_number (
int
) – The original track number
Set the original track number of the self to track_number.
- set_upnp_class(upnp_class)¶
- Parameters:
upnp_class (
str
) – The UPnP class as string.
Set the UPnP class of the self to upnp_class.
- set_write_status(write_status)¶
- Parameters:
write_status (
str
) – The write status string
Set the write status of the self to write_status.
- unset_artists()¶
Unset the artists properties of the self.
- unset_update_id()¶
Unset the update ID property of the self.
Property Details¶
- GUPnPAV.DIDLLiteObject.props.album¶
-
The album of this object.
- GUPnPAV.DIDLLiteObject.props.album_art¶
-
The URI to album art of this object.
- GUPnPAV.DIDLLiteObject.props.artist¶
-
The artist of this object.
Deprecated since version 0.5.3: Use
GUPnPAV.DIDLLiteObject.get_artists
andGUPnPAV.DIDLLiteObject.add_artist
instead since unlike this property, they are capable of dealing with multiple artist nodes.
- GUPnPAV.DIDLLiteObject.props.author¶
-
The author of this object.
Deprecated since version 0.5.3: Use
GUPnPAV.DIDLLiteObject.get_authors
andGUPnPAV.DIDLLiteObject.add_author
instead since unlike this property, they are capable of dealing with multiple author nodes.
- GUPnPAV.DIDLLiteObject.props.creator¶
-
The creator of this object.
- GUPnPAV.DIDLLiteObject.props.date¶
-
The date of this object.
- GUPnPAV.DIDLLiteObject.props.dc_namespace¶
- Name:
dc-namespace
- Type:
- Default Value:
- Flags:
Pointer to the DublinCore namespace registered with the XML document containing this object.
- GUPnPAV.DIDLLiteObject.props.description¶
-
The description of this object.
- GUPnPAV.DIDLLiteObject.props.dlna_managed¶
- Name:
dlna-managed
- Type:
- Default Value:
- Flags:
The ‘dlna:dlnaManaged’ attribute.
- GUPnPAV.DIDLLiteObject.props.dlna_namespace¶
- Name:
dlna-namespace
- Type:
- Default Value:
- Flags:
Pointer to the DLNA metadata namespace registered with the XML document containing this object.
- GUPnPAV.DIDLLiteObject.props.genre¶
-
The genre of this object.
- GUPnPAV.DIDLLiteObject.props.id¶
-
The ID of this object.
- GUPnPAV.DIDLLiteObject.props.parent_id¶
-
The ID of the parent container of this object.
- GUPnPAV.DIDLLiteObject.props.pv_namespace¶
- Name:
pv-namespace
- Type:
- Default Value:
- Flags:
Pointer to the PV metadata namespace registered with the XML document containing this object.
- GUPnPAV.DIDLLiteObject.props.restricted¶
-
Whether this object is restricted.
- GUPnPAV.DIDLLiteObject.props.title¶
-
The title of this object.
- GUPnPAV.DIDLLiteObject.props.track_number¶
-
The original track number of this object.
- GUPnPAV.DIDLLiteObject.props.update_id¶
-
Update ID of this object.
- GUPnPAV.DIDLLiteObject.props.upnp_class¶
-
The UPnP class of this object.
- GUPnPAV.DIDLLiteObject.props.upnp_namespace¶
- Name:
upnp-namespace
- Type:
- Default Value:
- Flags:
Pointer to the UPnP namespace registered with the XML document containing this object.
- GUPnPAV.DIDLLiteObject.props.write_status¶
-
The write status of this object.