From 28463b9a47e426f89b5f5d9197735a22ec3e673c Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 3 Apr 2021 22:55:24 +0200 Subject: [PATCH] epgview: fix saving of mp_movie_info->epgInfo2 for omdb Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c1065f5f743147978fb0fcc447ef3f5a20a440f6 Author: vanhofen 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 --- src/gui/epgview.cpp | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index 0049ea8b1..5d05a4728 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -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();