summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert McNamara <rmcnamara@mythtv.org>2011-06-11 04:46:28 (GMT)
committer Robert McNamara <rmcnamara@mythtv.org>2011-06-11 04:46:28 (GMT)
commit28f0fdb5fd23b471f39e3ba484a072da967173a3 (patch)
treebda00e841973be3a038741d5f60485f2929f75c9
parent204f81881ee95e1c913075e04b6381d81b1b5953 (diff)
Unescape HTML Encoding when parsing text portions of metadata.
Slight speed hit when parsing, but it needs to get done. Refs #9731.
-rw-r--r--mythtv/libs/libmythmetadata/metadatacommon.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/mythtv/libs/libmythmetadata/metadatacommon.cpp b/mythtv/libs/libmythmetadata/metadatacommon.cpp
index 307a5f5..cbbf25c 100644
--- a/mythtv/libs/libmythmetadata/metadatacommon.cpp
+++ b/mythtv/libs/libmythmetadata/metadatacommon.cpp
@@ -1,5 +1,6 @@
#include <QLocale>
+#include "rssparse.h"
#include "mythcorecontext.h"
#include "metadatacommon.h"
#include "mythverbose.h"
@@ -208,11 +209,11 @@ MetadataLookup* ParseMetadataItem(const QDomElement& item,
ArtworkMap artwork;
// Get the easy parses
- title = item.firstChildElement("title").text();
- subtitle = item.firstChildElement("subtitle").text();
- tagline = item.firstChildElement("tagline").text();
- description = item.firstChildElement("description").text();
- album = item.firstChildElement("albumname").text();
+ title = Parse::UnescapeHTML(item.firstChildElement("title").text());
+ subtitle = Parse::UnescapeHTML(item.firstChildElement("subtitle").text());
+ tagline = Parse::UnescapeHTML(item.firstChildElement("tagline").text());
+ description = Parse::UnescapeHTML(item.firstChildElement("description").text());
+ album = Parse::UnescapeHTML(item.firstChildElement("albumname").text());
inetref = item.firstChildElement("inetref").text();
tmsref = item.firstChildElement("tmsref").text();
imdb = item.firstChildElement("imdb").text();