YT use htmlEntityDecode with title

Origin commit data
------------------
Commit: b68841cee9
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-06-01 (Sat, 01 Jun 2019)
This commit is contained in:
Jacek Jendrzej
2019-06-01 16:31:27 +02:00
committed by vanhofen
parent 87a20a4115
commit 048363b309
2 changed files with 2 additions and 1 deletions

View File

@@ -4120,7 +4120,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

@@ -766,6 +766,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++)