coherence.backends.dvbd_storage (module)¶
-
class
Container
(id, parent_id, name, store=None, children_callback=None, container_class=<class 'coherence.upnp.core.DIDLLite.Container'>)[source]¶ Bases:
coherence.backend.BackendItem
-
logCategory
= 'dvbd_store'¶
-
get_children
(start=0, end=0)[source]¶ called by the CDS and the MediaServer web should return
- a list of its childs[start:end]
- or a Deferred
if end == 0, the request is for all childs after start - childs[start:]
-
get_child_count
()[source]¶ called by the CDS should return
- the number of its childs - len(childs)
- or a Deferred
-
get_item
()[source]¶ called by the CDS and the MediaServer web should return
- an UPnP ContentDirectoryServer DIDLLite object
- or a Deferred
-
-
class
Channel
(store, id, parent_id, name, url, network, mimetype)[source]¶ Bases:
coherence.backend.BackendItem
-
logCategory
= 'dvbd_store'¶
-
get_children
(start=0, end=0)[source]¶ called by the CDS and the MediaServer web should return
- a list of its childs[start:end]
- or a Deferred
if end == 0, the request is for all childs after start - childs[start:]
-
get_child_count
()[source]¶ called by the CDS should return
- the number of its childs - len(childs)
- or a Deferred
-
-
class
Recording
(store, id, parent_id, file, title, date, duration, mimetype)[source]¶ Bases:
coherence.backend.BackendItem
-
logCategory
= 'dvbd_store'¶
-
get_children
(start=0, end=0)[source]¶ called by the CDS and the MediaServer web should return
- a list of its childs[start:end]
- or a Deferred
if end == 0, the request is for all childs after start - childs[start:]
-
get_child_count
()[source]¶ called by the CDS should return
- the number of its childs - len(childs)
- or a Deferred
-
get_item
(parent_id=None)[source]¶ called by the CDS and the MediaServer web should return
- an UPnP ContentDirectoryServer DIDLLite object
- or a Deferred
-
-
class
DVBDStore
(server, **kwargs)[source]¶ Bases:
coherence.backend.BackendStore
this is a backend to the DVB Daemon http://www.k-d-w.org/node/42
-
implements
= ['MediaServer']¶
-
logCategory
= 'dvbd_store'¶
-
get_by_id
(id)[source]¶ called by the CDS or the MediaServer web
id is the id property of our DIDLLite item
if this MediaServer implements containers, that can share their content, like ‘all tracks’, ‘album’ and ‘album_of_artist’ - they all have the same track item as content - then the id may be passed by the CDS like this:
‘id@container’ or ‘id@container@container@container…’
therefore a
- if isinstance(id, basestring):
- id = id.split(‘@’,1) id = id[0]
may be appropriate as the first thing to do when entering this method
should return
- None when no matching item for that id is found,
- a BackendItem,
- or a Deferred
-
upnp_init
()[source]¶ This method gets called after the device is fired, here all initializations of service related state variables should happen, as the services aren’t available before that point.
-
-
class
DVBDScheduledRecording
(server, **kwargs)[source]¶ Bases:
coherence.backend.BackendStore
-
logCategory
= 'dvbd_store'¶
-