Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
coherence
compere
Commits
1710be2d
Commit
1710be2d
authored
Jun 26, 2007
by
Frank Scholz
Browse files
if the MS wasn't ready on the first browse, react on its SystemUpdateID event
parent
2a6215c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
media_renderer
View file @
1710be2d
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment