|
a/src/mediaserver/cdplugins/uprcl/uprclfolders.py |
|
b/src/mediaserver/cdplugins/uprcl/uprclfolders.py |
|
... |
|
... |
108 |
# url: create intermediary directories if needed, create leaf
|
108 |
# url: create intermediary directories if needed, create leaf
|
109 |
# entry.
|
109 |
# entry.
|
110 |
for docidx in range(len(self._rcldocs)):
|
110 |
for docidx in range(len(self._rcldocs)):
|
111 |
doc = self._rcldocs[docidx]
|
111 |
doc = self._rcldocs[docidx]
|
112 |
|
112 |
|
|
|
113 |
# No need to include non-audio types in the visible tree.
|
|
|
114 |
if doc.mtype not in audiomtypes:
|
|
|
115 |
continue
|
|
|
116 |
|
113 |
# Possibly enrich the doc entry with a cover art uri.
|
117 |
# Possibly enrich the doc entry with a cover art uri.
|
114 |
arturi = docarturi(doc, self._httphp, self._pprefix)
|
118 |
arturi = docarturi(doc, self._httphp, self._pprefix)
|
115 |
if arturi:
|
119 |
if arturi:
|
116 |
# The uri is quoted, so it's ascii and we can just store
|
120 |
# The uri is quoted, so it's ascii and we can just store
|
117 |
# it as a doc attribute
|
121 |
# it as a doc attribute
|
118 |
doc.albumarturi = arturi
|
122 |
doc.albumarturi = arturi
|
119 |
|
|
|
120 |
# No need to include non-audio types in the visible tree.
|
|
|
121 |
if doc.mtype not in audiomtypes:
|
|
|
122 |
continue
|
|
|
123 |
|
123 |
|
124 |
url = doc.getbinurl()
|
124 |
url = doc.getbinurl()
|
125 |
url = url[7:]
|
125 |
url = url[7:]
|
126 |
try:
|
126 |
try:
|
127 |
decoded = url.decode('utf-8')
|
127 |
decoded = url.decode('utf-8')
|