aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-14 12:00:58 +0100
committerMax Kellermann <max@duempel.org>2014-01-14 12:00:58 +0100
commit29e5dc4413bde9ed1886bd3287943f4d1102d0a7 (patch)
tree4b0ae774285c01dde6403b8fe811df1f6ccec04c
parent3a660c5527eba5fe31326ccfbc880f0a5f5e720c (diff)
downloadmpd-29e5dc4413bde9ed1886bd3287943f4d1102d0a7.tar.gz
mpd-29e5dc4413bde9ed1886bd3287943f4d1102d0a7.tar.xz
mpd-29e5dc4413bde9ed1886bd3287943f4d1102d0a7.zip
db/upnp: don't sanitize the title tag
We need this only for path names.
-rw-r--r--src/db/UpnpDatabasePlugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx
index 19a27d994..32f196964 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -246,7 +246,7 @@ upnpItemToSong(const UPnPDirObject &dirent, const char *uri)
if (dirent.duration > 0)
tag.SetTime(dirent.duration);
- tag.AddItem(TAG_TITLE, titleToPathElt(dirent.m_title).c_str());
+ tag.AddItem(TAG_TITLE, dirent.m_title.c_str());
for (auto i = upnp_tags; i->name != nullptr; ++i) {
const char *value = dirent.getprop(i->name);
@@ -306,7 +306,7 @@ getTagValue(UPnPDirObject& dirent, TagType tag,
{
if (tag == TAG_TITLE) {
if (!dirent.m_title.empty()) {
- tagvalue = titleToPathElt(dirent.m_title);
+ tagvalue = dirent.m_title;
return true;
}
return false;