mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
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:
@@ -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 ;
|
||||||
|
@@ -766,6 +766,7 @@ std::string& htmlEntityDecode(std::string& text)
|
|||||||
{"„", "„"},
|
{"„", "„"},
|
||||||
{"•", "•"},
|
{"•", "•"},
|
||||||
{"…", "…"},
|
{"…", "…"},
|
||||||
|
{"'", "'"},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
for (int i = 0; dt[i].code != NULL; i++)
|
for (int i = 0; dt[i].code != NULL; i++)
|
||||||
|
Reference in New Issue
Block a user