FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

some updates to sort out the Rhythmbox vs. PS3 issues · opendreambox/python-coherence@883eda4 · GitHub

Repository navigation

Commit 883eda4

Browse files
Frank Scholz
committed
some updates to sort out the Rhythmbox vs. PS3 issues
1 parent 879a8a4 commit 883eda4

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

‎coherence/backends/mediadb_storage.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,13 @@ def __init__(self, id, parent_id, name, children_callback=None):
111111
self.parent_id = parent_id
112112
self.name = name
113113
self.mimetype = 'directory'
114-
self.item = DIDLLite.StorageFolder(id, parent_id,self.name)
114+
self.item = DIDLLite.Container(id, parent_id,self.name)
115115
self.update_id = 0
116116
if children_callback != None:
117117
self.children = children_callback
118118
else:
119119
self.children = []
120+
self.item.childCount = self.get_child_count()
120121

121122
def add_child(self, child):
122123
self.children.append(child)

‎coherence/upnp/devices/media_server.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import os
99
import re
10+
import traceback
1011
from StringIO import StringIO
1112
import urllib
1213

@@ -139,10 +140,12 @@ def getChild(self, name, request):
139140
return ch.location
140141
try:
141142
p = ch.get_path()
142-
except:
143+
except Exception, msg:
144+
self.debug("error accessing items path %r" % msg)
145+
self.debug(traceback.format_exc())
143146
return self.list_content(name, ch, request)
144147
if os.path.exists(p):
145-
self.info("accessing path", p)
148+
self.info("accessing path %r" % p)
146149
new_id,_,_ = self.server.connection_manager_server.add_connection('',
147150
'Output',
148151
-1,
@@ -153,6 +156,7 @@ def getChild(self, name, request):
153156
d.addErrback(self.requestFinished, new_id)
154157
ch = StaticFile(p.encode('utf-8'))
155158
else:
159+
self.debug("accessing path %r failed" % p)
156160
return self.list_content(name, ch, request)
157161

158162
if ch is None:

‎docs/coherence.conf.example‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ controlpoint = yes # if set to yes coherence will activat
1414
web-ui = no # set this to yes to enable some interactive
1515
# Web-UI
1616

17-
use_dbus = yes # set this to yes to let Coherence signal
17+
#use_dbus = yes # set this to yes to let Coherence signal
1818
# devices and services via dbus and provide
1919
# access to them
2020
# only useful when controlpoint is enabled too

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL