From 048363b309f1f1a9b3bcd68fd03f8085545fe530 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 1 Jun 2019 16:31:27 +0200 Subject: [PATCH] YT use htmlEntityDecode with title Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/b68841cee9b17a6eda4a44f049f3fe66462e8910 Author: Jacek Jendrzej Date: 2019-06-01 (Sat, 01 Jun 2019) --- src/gui/moviebrowser/mb.cpp | 2 +- src/system/helpers.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index a3d47d850..70966424f 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -4120,7 +4120,7 @@ void CMovieBrowser::loadYTitles(int mode, std::string search, std::string id) for (unsigned i = 0; i < ylist.size(); i++) { MI_MOVIE_INFO movieInfo; movieInfo.channelName = ylist[i].author; - movieInfo.epgTitle = ylist[i].title; + movieInfo.epgTitle = htmlEntityDecode(ylist[i].title); movieInfo.epgInfo1 = ylist[i].category; movieInfo.epgInfo2 = ylist[i].description; movieInfo.length = ylist[i].duration/60 ; diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 49dc2731c..4f057e3de 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -766,6 +766,7 @@ std::string& htmlEntityDecode(std::string& text) {"„", "„"}, {"•", "•"}, {"…", "…"}, + {"'", "'"}, {NULL, NULL} }; for (int i = 0; dt[i].code != NULL; i++)