Package brisa :: Package upnp :: Package services :: Package cds :: Module content_directory
[hide private]
[frames] | no frames]

Module content_directory

source code

Content Directory service implementation.

Common usage is to just add a ContentDirectory class instance to a device.

Classes [hide private]
  ContentDirectory
Content Directory service implementation (version 1.0).
Functions [hide private]
boolean
compare_objects(a, b)
Compares two DIDL objects by their title for proper sorting.
source code
Variables [hide private]
  log = log.getLogger('services.cds')
  service_name = 'ContentDirectory'
  service_type = 'urn:schemas-upnp-org:service:ContentDirectory:1'
  scpd_xml_path = os.path.join(xml_path, 'content-directory-scpd...
Function Details [hide private]

compare_objects(a, b)

source code 

Compares two DIDL objects by their title for proper sorting.

Parameters:
  • a (DIDL) - A DIDL object to be compared with.
  • b (DIDL) - A DIDL object to compare with.
Returns: boolean
The comparation result.

Variables Details [hide private]

scpd_xml_path

Value:
os.path.join(xml_path, 'content-directory-scpd.xml')