mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
imdb/tmdb: unify some funtions
Origin commit data
------------------
Branch: ni/coolstream
Commit: c5701bd1db
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-04-05 (Mon, 05 Apr 2021)
Origin message was:
------------------
- imdb/tmdb: unify some funtions
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1200,11 +1200,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
epgText_saved = epgText;
|
||||
epgText.clear();
|
||||
tmdb_active = !tmdb_active;
|
||||
|
||||
epgTextSwitch = tmdb->getDescription();
|
||||
if (!tmdb->getCast().empty())
|
||||
epgTextSwitch += "\n\n"+(std::string)g_Locale->getText(LOCALE_EPGEXTENDED_ACTORS)+":\n"+ tmdb->getCast()+"\n";
|
||||
|
||||
epgTextSwitch = tmdb->CreateMovieText();
|
||||
processTextToArray(tmdb->CreateEPGText(), 0, tmdb->hasCover());
|
||||
textCount = epgText.size();
|
||||
tmdb_stars = tmdb->getStars();
|
||||
@@ -1697,39 +1693,8 @@ int CEpgData::showIMDb(bool splash)
|
||||
epgText.clear();
|
||||
|
||||
//data
|
||||
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());
|
||||
epgTextSwitch = imdb->CreateMovieText();
|
||||
processTextToArray(imdb->CreateEPGText(), 0, imdb->gotPoster());
|
||||
|
||||
textCount = epgText.size();
|
||||
|
||||
|
Reference in New Issue
Block a user