From e0bf8d1336d5bf96d1682d359172b07a739bb8d5 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 8 Apr 2021 17:31:07 +0200 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/6ab8142e6a4e5992d46c0746d92b5b999ef9caec Author: Thilo Graf Date: 2021-04-08 (Thu, 08 Apr 2021) ------------------ This commit was generated by Migit --- src/gui/epgview.cpp | 8 ++++---- src/gui/mdb-imdb.cpp | 4 ++-- src/gui/mdb-imdb.h | 4 ++-- src/gui/mdb-tmdb.cpp | 4 ++-- src/gui/mdb-tmdb.h | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index 2d3eb472e..12de4eaab 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -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(); diff --git a/src/gui/mdb-imdb.cpp b/src/gui/mdb-imdb.cpp index e325d9091..20797f4f0 100644 --- a/src/gui/mdb-imdb.cpp +++ b/src/gui/mdb-imdb.cpp @@ -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(""); diff --git a/src/gui/mdb-imdb.h b/src/gui/mdb-imdb.h index 621e3cbc6..12c69408d 100644 --- a/src/gui/mdb-imdb.h +++ b/src/gui/mdb-imdb.h @@ -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); } diff --git a/src/gui/mdb-tmdb.cpp b/src/gui/mdb-tmdb.cpp index 8a3c9d2ca..41c653f59 100644 --- a/src/gui/mdb-tmdb.cpp +++ b/src/gui/mdb-tmdb.cpp @@ -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(""); diff --git a/src/gui/mdb-tmdb.h b/src/gui/mdb-tmdb.h index 0b9400e69..49d52e875 100644 --- a/src/gui/mdb-tmdb.h +++ b/src/gui/mdb-tmdb.h @@ -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;}