imdb/tmdb: rename 'create' methods to 'getter' functions

For reasons of plausibility, name does not suggest a "Getter" function

supplement to: - imdb/tmdb: unify some funtions
This commit is contained in:
2021-04-07 21:26:16 +02:00
parent b3ca37c04c
commit 64727c4962
5 changed files with 12 additions and 12 deletions

View File

@@ -1171,8 +1171,8 @@ 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->CreateMovieText();
processTextToArray(tmdb->CreateEPGText(), 0, tmdb->hasCover());
epgTextSwitch = tmdb->getMovieText();
processTextToArray(tmdb->getEPGText(), 0, tmdb->hasCover());
textCount = epgText.size();
stars = tmdb->getStars();
showText(showPos, sy + toph, tmdb_active || (imdb_active && imdb->gotPoster()));
@@ -1664,8 +1664,8 @@ int CEpgData::showIMDb(bool splash)
epgText.clear();
//data
epgTextSwitch = imdb->CreateMovieText();
processTextToArray(imdb->CreateEPGText(), 0, imdb->gotPoster());
epgTextSwitch = imdb->getMovieText();
processTextToArray(imdb->getEPGText(), 0, imdb->gotPoster());
textCount = epgText.size();

View File

@@ -364,7 +364,7 @@ bool CIMDB::checkIMDbElement(std::string element)
return true;
}
std::string CIMDB::CreateEPGText()
std::string CIMDB::getEPGText()
{
if (m["imdbID"].empty() || m["Response"] != "True")
return g_Locale->getText(LOCALE_IMDB_DATA_FAILED);
@@ -408,7 +408,7 @@ std::string CIMDB::CreateEPGText()
return epgtext;
}
std::string CIMDB::CreateMovieText()
std::string CIMDB::getMovieText()
{
std::string movietext("");

View File

@@ -44,8 +44,8 @@ class CIMDB
void StringReplace(std::string &str, const std::string search, const std::string rstr);
void cleanup();
std::string CreateEPGText();
std::string CreateMovieText();
std::string getEPGText();
std::string getMovieText();
bool gotPoster();

View File

@@ -189,7 +189,7 @@ bool cTmdb::GetMovieDetails(std::string lang, bool second)
return false;
}
std::string cTmdb::CreateEPGText()
std::string cTmdb::getEPGText()
{
std::string epgtext("");
@@ -212,7 +212,7 @@ std::string cTmdb::CreateEPGText()
return epgtext;
}
std::string cTmdb::CreateMovieText()
std::string cTmdb::getMovieText()
{
std::string movietext("");

View File

@@ -61,8 +61,8 @@ class cTmdb
~cTmdb();
static cTmdb* getInstance();
void setTitle(std::string epgtitle);
std::string CreateEPGText();
std::string CreateMovieText();
std::string getEPGText();
std::string getMovieText();
std::string getTitle() { return minfo.epgtitle;}
std::string getOrgTitle() { return minfo.original_title;}