--- a/src/mediaserver/cdplugins/uprcl/uprclsearch.py
+++ b/src/mediaserver/cdplugins/uprcl/uprclsearch.py
@@ -99,6 +99,7 @@
i,c = _getchar(s, i)
if not c:
break
+ #uplog("upnpsearchtorecoll: nextchar: <%s>" % c)
if c.isspace():
continue
@@ -125,8 +126,8 @@
else:
i -= 1
i,w = _readword(s, i)
-
- #print("Got word [%s]" % w)
+ #uplog("_readword returned <%s>" % w)
+
if w == 'contains':
out.append(':')
oper = ':'
@@ -158,7 +159,10 @@
# use parentheses
out.append('OR')
else:
- field = upnp2rclfields[w]
+ try:
+ field = upnp2rclfields[w]
+ except:
+ field = w
out.append(field)
oper = ""