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_saved = epgText;
|
||||||
epgText.clear();
|
epgText.clear();
|
||||||
tmdb_active = true;
|
tmdb_active = true;
|
||||||
epgTextSwitch = tmdb->CreateMovieText();
|
epgTextSwitch = tmdb->getMovieText();
|
||||||
processTextToArray(tmdb->CreateEPGText(), 0, tmdb->hasPoster());
|
processTextToArray(tmdb->getEPGText(), 0, tmdb->hasPoster());
|
||||||
textCount = epgText.size();
|
textCount = epgText.size();
|
||||||
tmdb_stars = tmdb->getStars();
|
tmdb_stars = tmdb->getStars();
|
||||||
showText(showPos, sy + toph, tmdb->hasPoster());
|
showText(showPos, sy + toph, tmdb->hasPoster());
|
||||||
@@ -1691,8 +1691,8 @@ int CEpgData::showIMDb(bool splash)
|
|||||||
epgText.clear();
|
epgText.clear();
|
||||||
|
|
||||||
//data
|
//data
|
||||||
epgTextSwitch = imdb->CreateMovieText();
|
epgTextSwitch = imdb->getMovieText();
|
||||||
processTextToArray(imdb->CreateEPGText(), 0, imdb->hasPoster());
|
processTextToArray(imdb->getEPGText(), 0, imdb->hasPoster());
|
||||||
|
|
||||||
textCount = epgText.size();
|
textCount = epgText.size();
|
||||||
|
|
||||||
|
@@ -358,7 +358,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);
|
||||||
@@ -402,7 +402,7 @@ std::string CIMDB::CreateEPGText()
|
|||||||
return epgtext;
|
return epgtext;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CIMDB::CreateMovieText()
|
std::string CIMDB::getMovieText()
|
||||||
{
|
{
|
||||||
std::string movietext("");
|
std::string movietext("");
|
||||||
|
|
||||||
|
@@ -58,8 +58,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();
|
||||||
|
|
||||||
std::string getPoster() { return posterfile;}
|
std::string getPoster() { return posterfile;}
|
||||||
bool hasPoster() { return (access(posterfile.c_str(), F_OK) == 0); }
|
bool hasPoster() { return (access(posterfile.c_str(), F_OK) == 0); }
|
||||||
|
@@ -184,7 +184,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("");
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ std::string CTMDB::CreateEPGText()
|
|||||||
return epgtext;
|
return epgtext;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CTMDB::CreateMovieText()
|
std::string CTMDB::getMovieText()
|
||||||
{
|
{
|
||||||
std::string movietext("");
|
std::string movietext("");
|
||||||
|
|
||||||
|
@@ -62,8 +62,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;}
|
||||||
|
Reference in New Issue
Block a user