From 5fa551dab648992dee209a09bf794e1864027e32 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 --- 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 63e3ac01a..aa178e9b0 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -4108,7 +4108,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 677a2f6bf..68bc65754 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -636,6 +636,7 @@ std::string& htmlEntityDecode(std::string& text) {"„", "„"}, {"•", "•"}, {"…", "…"}, + {"'", "'"}, {NULL, NULL} }; for (int i = 0; dt[i].code != NULL; i++)