Commit 1710be2d authored by Frank Scholz's avatar Frank Scholz
Browse files

if the MS wasn't ready on the first browse, react on its SystemUpdateID event

parent 2a6215c2
......@@ -173,6 +173,13 @@ class MediaRenderer(object):
print variable.name, 'changed from', variable.old_value, 'to', variable.value
if variable.old_value == '':
return
if variable.name == 'SystemUpdateID':
if self.client.has_key(usn) == True:
if len(self.images) == 0:
d = self.client[usn].content_directory.browse(0, browse_flag='BrowseDirectChildren',
backward_compatibility=False)
d.addCallback( self.process_media_server_browse, usn)
if variable.name == 'ContainerUpdateIDs':
changes = variable.value.split(',')
while len(changes) > 1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment