intel / dleyna-control

dLeyna-control is a Digital Media Player written in python to demonstrate how to use the dleyna DMS APIs. It detects Digital Media Servers on the local area network and allows users to browse, search and play their contents.
https://01.org/dleyna/
GNU Lesser General Public License v2.1
8 stars 12 forks source link

dLeyna-control should update its display when server contents change #22

Open markdryan opened 11 years ago

markdryan commented 11 years ago

dLeyna-server generates signals when the contents of the DMS change. There are two signals, SystemUpdateID and ContainerUpdateID. I don't think all servers are obliged to support ContainerUpdateID so we could simply refresh the view each time we retrieve the SystemUpdateID. Of course this will be wasteful in the browse case. Perhaps we can check to see if folder has the containerUpdateID property. If it does and we can ignore SystemUpdate and only update the folder if a ContainerUpdateID signal is received for the folder.

BTW., there is currently a bug in dLeyna-server. The ContainerUpdateID property is always present and set to 0 even if the underlying DMS does not support this property. I'll enter a separate issue for this.