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

View File

@@ -364,7 +364,7 @@ bool CIMDB::checkIMDbElement(std::string element)
return true; return true;
} }
std::string CIMDB::CreateEPGText() std::string CIMDB::getEPGText()
{ {
if (m["imdbID"].empty() || m["Response"] != "True") if (m["imdbID"].empty() || m["Response"] != "True")
return g_Locale->getText(LOCALE_IMDB_DATA_FAILED); return g_Locale->getText(LOCALE_IMDB_DATA_FAILED);
@@ -408,7 +408,7 @@ std::string CIMDB::CreateEPGText()
return epgtext; return epgtext;
} }
std::string CIMDB::CreateMovieText() std::string CIMDB::getMovieText()
{ {
std::string movietext(""); 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 StringReplace(std::string &str, const std::string search, const std::string rstr);
void cleanup(); void cleanup();
std::string CreateEPGText(); std::string getEPGText();
std::string CreateMovieText(); std::string getMovieText();
bool gotPoster(); bool gotPoster();

View File

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

View File

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