Browse files

Unescape HTML Encoding when parsing text portions of metadata.

Slight speed hit when parsing, but it needs to get done.  Fixes #9731.
  • Loading branch information...
1 parent 4dec7cf commit 40a3124695c856b3a359d677d99329e12bf79332 Robert McNamara committed Jun 10, 2011
Showing with 6 additions and 5 deletions.
  1. +6 −5 mythtv/libs/libmythmetadata/metadatacommon.cpp
View
11 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();

0 comments on commit 40a3124

Please sign in to comment.