|
a/src/mediaserver/cdplugins/uprcl/uprclutils.py |
|
b/src/mediaserver/cdplugins/uprcl/uprclutils.py |
|
... |
|
... |
18 |
|
18 |
|
19 |
# Correspondance between Recoll field names (on the right), defined by
|
19 |
# Correspondance between Recoll field names (on the right), defined by
|
20 |
# rclaudio and the Recoll configuration 'fields' file, and what
|
20 |
# rclaudio and the Recoll configuration 'fields' file, and what
|
21 |
# plgwithslave.cxx expects, which is less than consistent.
|
21 |
# plgwithslave.cxx expects, which is less than consistent.
|
22 |
upnp2rclfields = {
|
22 |
upnp2rclfields = {
|
|
|
23 |
'composer' : 'composer',
|
|
|
24 |
'conductor' : 'conductor',
|
23 |
'dc:creator' : '?',
|
25 |
# 'dc:creator' : 'artist',
|
24 |
'upnp:genre' : 'genre',
|
26 |
'dc:date' : 'date',
|
25 |
'upnp:album': 'album',
|
27 |
'duration' : 'duration',
|
26 |
'upnp:originalTrackNumber' : 'tracknumber',
|
28 |
'res:bitrate' : 'bitrate',
|
|
|
29 |
'res:channels' : 'channels',
|
27 |
'res:mime' : 'mtype',
|
30 |
'res:mime' : 'mtype',
|
28 |
'res:samplefreq' : 'sample_rate',
|
31 |
'res:samplefreq' : 'sample_rate',
|
29 |
'res:channels' : 'channels',
|
32 |
'res:size' : 'fbytes',
|
30 |
'res:bitrate' : 'bitrate',
|
33 |
'tt' : 'title',
|
31 |
'duration' : 'duration',
|
34 |
'upnp:album': 'album',
|
32 |
'upnp:artist' : 'artist',
|
35 |
'upnp:artist' : 'artist',
|
33 |
'dc:date' : 'date',
|
36 |
'upnp:genre' : 'genre',
|
34 |
'tt' : 'title',
|
37 |
'upnp:originalTrackNumber' : 'tracknumber',
|
35 |
'composer' : 'composer',
|
|
|
36 |
'conductor' : 'conductor'
|
|
|
37 |
}
|
38 |
}
|
38 |
|
39 |
|
39 |
def rcldoctoentry(id, pid, httphp, pathprefix, doc):
|
40 |
def rcldoctoentry(id, pid, httphp, pathprefix, doc):
|
40 |
"""
|
41 |
"""
|
41 |
Transform a Doc objects into the format expected by the parent
|
42 |
Transform a Doc objects into the format expected by the parent
|