mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
epgview: fix saving of mp_movie_info->epgInfo2 for omdb
Origin commit data
------------------
Branch: ni/coolstream
Commit: c1065f5f74
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-04-03 (Sat, 03 Apr 2021)
Origin message was:
------------------
- epgview: fix saving of mp_movie_info->epgInfo2 for omdb
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1686,7 +1686,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))
|
||||
@@ -1700,6 +1700,35 @@ int CEpgData::showIMDb(bool splash)
|
||||
std::string txt;
|
||||
txt.clear();
|
||||
imdb->getIMDbData(txt);
|
||||
|
||||
// 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();
|
||||
|
Reference in New Issue
Block a user