- epgview: fix saving of mp_movie_info->epgInfo2 for omdb

Conflicts:
	src/gui/epgview.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-04-03 22:55:24 +02:00
committed by Thilo Graf
parent e1e75ef4af
commit 282827eb5c

View File

@@ -1657,7 +1657,7 @@ int CEpgData::showIMDb(bool splash)
return 0;
}
//titel
//title
std::string title = imdb->getIMDbElement("Title");
if(((title.find(imdb->search_error)) != std::string::npos))
@@ -1672,6 +1672,34 @@ int CEpgData::showIMDb(bool splash)
txt.clear();
imdb->getIMDbData(txt);
processTextToArray(" ", 0, imdb->gotPoster()); // empty line to get space for the rating stars
// create mp_movie_info->epgInfo2
if (imdb->checkIMDbElement("Plot"))
{
epgTextSwitch = imdb->getIMDbElement("Plot") + "\n";
if (imdb->checkIMDbElement("Title"))
{
epgTextSwitch += "\n";
epgTextSwitch += g_Locale->getString(LOCALE_IMDB_DATA_TITLE) + ": ";
epgTextSwitch += imdb->getIMDbElement("Title");
}
if (imdb->checkIMDbElement("Country"))
{
epgTextSwitch += "\n";
epgTextSwitch += g_Locale->getString(LOCALE_IMDB_DATA_RELEASED) + ": ";
epgTextSwitch += imdb->getIMDbElement("Country");
if (imdb->checkIMDbElement("Released"))
{
epgTextSwitch += ", " + imdb->getIMDbElement("Released");
}
}
if (imdb->checkIMDbElement("Actors"))
{
epgTextSwitch += "\n";
epgTextSwitch += g_Locale->getString(LOCALE_IMDB_DATA_ACTORS) + ": ";
epgTextSwitch += imdb->getIMDbElement("Actors");
}
}
processTextToArray(txt, 0, imdb->gotPoster());
textCount = epgText.size();