mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
imdb/tmdb: rename 'create' methods to 'getter' functions
For reasons of plausibility, name does not suggest a "Getter" function
upplement to: - imdb/tmdb: unify some funtions
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6ab8142e6a
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-04-08 (Thu, 08 Apr 2021)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1198,8 +1198,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 = true;
|
||||
epgTextSwitch = tmdb->CreateMovieText();
|
||||
processTextToArray(tmdb->CreateEPGText(), 0, tmdb->hasPoster());
|
||||
epgTextSwitch = tmdb->getMovieText();
|
||||
processTextToArray(tmdb->getEPGText(), 0, tmdb->hasPoster());
|
||||
textCount = epgText.size();
|
||||
tmdb_stars = tmdb->getStars();
|
||||
showText(showPos, sy + toph, tmdb->hasPoster());
|
||||
@@ -1691,8 +1691,8 @@ int CEpgData::showIMDb(bool splash)
|
||||
epgText.clear();
|
||||
|
||||
//data
|
||||
epgTextSwitch = imdb->CreateMovieText();
|
||||
processTextToArray(imdb->CreateEPGText(), 0, imdb->hasPoster());
|
||||
epgTextSwitch = imdb->getMovieText();
|
||||
processTextToArray(imdb->getEPGText(), 0, imdb->hasPoster());
|
||||
|
||||
textCount = epgText.size();
|
||||
|
||||
|
@@ -358,7 +358,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);
|
||||
@@ -402,7 +402,7 @@ std::string CIMDB::CreateEPGText()
|
||||
return epgtext;
|
||||
}
|
||||
|
||||
std::string CIMDB::CreateMovieText()
|
||||
std::string CIMDB::getMovieText()
|
||||
{
|
||||
std::string movietext("");
|
||||
|
||||
|
@@ -58,8 +58,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();
|
||||
|
||||
std::string getPoster() { return posterfile;}
|
||||
bool hasPoster() { return (access(posterfile.c_str(), F_OK) == 0); }
|
||||
|
@@ -184,7 +184,7 @@ bool CTMDB::GetMovieDetails(std::string lang, bool second)
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string CTMDB::CreateEPGText()
|
||||
std::string CTMDB::getEPGText()
|
||||
{
|
||||
std::string epgtext("");
|
||||
|
||||
@@ -207,7 +207,7 @@ std::string CTMDB::CreateEPGText()
|
||||
return epgtext;
|
||||
}
|
||||
|
||||
std::string CTMDB::CreateMovieText()
|
||||
std::string CTMDB::getMovieText()
|
||||
{
|
||||
std::string movietext("");
|
||||
|
||||
|
@@ -62,8 +62,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;}
|
||||
|
Reference in New Issue
Block a user