|
a/src/mediaserver/cdplugins/uprcl/uprclutils.py |
|
b/src/mediaserver/cdplugins/uprcl/uprclutils.py |
|
... |
|
... |
301 |
ret['upnp:class'] = 'object.container'
|
301 |
ret['upnp:class'] = 'object.container'
|
302 |
return ret
|
302 |
return ret
|
303 |
|
303 |
|
304 |
|
304 |
|
305 |
def uplog(s):
|
305 |
def uplog(s):
|
|
|
306 |
if not isinstance(s, unicode):
|
|
|
307 |
s = s.decode('utf-8', errors='replace')
|
306 |
print(("%s: %s" % ('uprcl', s)).encode('utf-8'), file=sys.stderr)
|
308 |
print("%s: %s" % ('uprcl', s), file=sys.stderr)
|
307 |
|
309 |
|
308 |
|
310 |
|
309 |
# Parse string into (possibly multiword) tokens
|
311 |
# Parse string into (possibly multiword) tokens
|
310 |
# 'a b "one phrase" c' -> [a, b, 'one phrase', c]
|
312 |
# 'a b "one phrase" c' -> [a, b, 'one phrase', c]
|
311 |
def stringToStrings(str):
|
313 |
def stringToStrings(str):
|