a/src/mediaserver/cdplugins/uprcl/uprclutils.py b/src/mediaserver/cdplugins/uprcl/uprclutils.py
...
...
179
    a1 = e1[k] if k in e1 else "0"
179
    a1 = e1[k] if k in e1 else "0"
180
    a2 = e2[k] if k in e2 else "0"
180
    a2 = e2[k] if k in e2 else "0"
181
    return int(a1) - int(a2)
181
    return int(a1) - int(a2)
182
182
183
183
184
def rclpathtoreal(path, pathprefix, httphp, pathmap):
185
    path = path.replace(pathprefix, '', 1)
186
    found = False
187
    for fsp,htp in pathmap.iteritems():
188
        if path.startswith(fsp):
189
            path = path.replace(fsp, htp, 1)
190
            found = True
191
    if not found:
192
        return None
193
    return "http://" + httphp + path
194
195
def rcldirentry(id, pid, title, arturi=None, artist=None, upnpclass=None,
184
def rcldirentry(id, pid, title, arturi=None, artist=None, upnpclass=None,
196
                searchable='1'):
185
                searchable='1'):
197
    """ Create container entry in format expected by parent """
186
    """ Create container entry in format expected by parent """
198
    ret = {'id':id, 'pid':pid, 'tt':title, 'tp':'ct', 'searchable':searchable}
187
    ret = {'id':id, 'pid':pid, 'tt':title, 'tp':'ct', 'searchable':searchable}
199
    if arturi:
188
    if arturi: