YT use htmlEntityDecode with title

This commit is contained in:
Jacek Jendrzej
2019-06-01 16:31:27 +02:00
parent 359714dd85
commit 5fa551dab6
2 changed files with 2 additions and 1 deletions

View File

@@ -4108,7 +4108,7 @@ void CMovieBrowser::loadYTitles(int mode, std::string search, std::string id)
for (unsigned i = 0; i < ylist.size(); i++) { for (unsigned i = 0; i < ylist.size(); i++) {
MI_MOVIE_INFO movieInfo; MI_MOVIE_INFO movieInfo;
movieInfo.channelName = ylist[i].author; movieInfo.channelName = ylist[i].author;
movieInfo.epgTitle = ylist[i].title; movieInfo.epgTitle = htmlEntityDecode(ylist[i].title);
movieInfo.epgInfo1 = ylist[i].category; movieInfo.epgInfo1 = ylist[i].category;
movieInfo.epgInfo2 = ylist[i].description; movieInfo.epgInfo2 = ylist[i].description;
movieInfo.length = ylist[i].duration/60 ; movieInfo.length = ylist[i].duration/60 ;

View File

@@ -636,6 +636,7 @@ std::string& htmlEntityDecode(std::string& text)
{"„", "&#8222;"}, {"„", "&#8222;"},
{"•", "&#8226;"}, {"•", "&#8226;"},
{"…", "&#8230;"}, {"…", "&#8230;"},
{"'", "&#39;"},
{NULL, NULL} {NULL, NULL}
}; };
for (int i = 0; dt[i].code != NULL; i++) for (int i = 0; dt[i].code != NULL; i++)