- imdb/tmdb: more unifications; getEPGText()

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-05-03 01:00:35 +02:00
committed by Thilo Graf
parent f72ca5887a
commit 49752cc478
6 changed files with 15 additions and 4 deletions

View File

@@ -1018,6 +1018,7 @@ imdb.data_genre Genre
imdb.data_metascore Metascore
imdb.data_plot Handlung
imdb.data_production Produktion
imdb.data_rating Bewertung
imdb.data_rating_failed Keine Bewertung
imdb.data_released Veröffentlicht
imdb.data_runtime Spieldauer

View File

@@ -1018,6 +1018,7 @@ imdb.data_genre Genre
imdb.data_metascore Metascore
imdb.data_plot Plot
imdb.data_production Production
imdb.data_rating Rating
imdb.data_rating_failed No rating
imdb.data_released Released
imdb.data_runtime Runtime

View File

@@ -386,11 +386,18 @@ std::string CIMDB::getEPGText()
std::string epgtext("");
epgtext += g_Locale->getString(LOCALE_IMDB_DATA_VOTES) + ": " + m["imdbVotes"] + "\n";
if (checkElement("imdbRating"))
{
epgtext += g_Locale->getString(LOCALE_IMDB_DATA_RATING) + ": " + m["imdbRating"] + "/10; ";
epgtext += g_Locale->getString(LOCALE_IMDB_DATA_VOTES) + ": " + m["imdbVotes"] + "\n";
}
if (checkElement("Metascore"))
epgtext += g_Locale->getString(LOCALE_IMDB_DATA_METASCORE) + ": " + m["Metascore"] + "/100\n";
epgtext += "\n";
epgtext += g_Locale->getString(LOCALE_IMDB_DATA_TITLE) + ": " + m["Title"] + "\n";
if (checkElement("Title"))
{
epgtext += "\n";
epgtext += g_Locale->getString(LOCALE_IMDB_DATA_TITLE) + ": " + m["Title"] + "\n";
}
if (checkElement("Released"))
epgtext += g_Locale->getString(LOCALE_IMDB_DATA_RELEASED) + ": " + m["Country"] + ", " + m["Released"] + "\n";
if (checkElement("Runtime"))

View File

@@ -204,7 +204,7 @@ std::string CTMDB::getEPGText()
{
std::string epgtext("");
epgtext += "Vote: " + minfo.vote_average.substr(0, 3) + "/10 Votecount: " + to_string(minfo.vote_count) + "\n";
epgtext += "Vote: " + minfo.vote_average.substr(0, 3) + "/10; Votecount: " + to_string(minfo.vote_count) + "\n";
epgtext += "\n";
epgtext += minfo.overview + "\n";
epgtext += "\n";

View File

@@ -1045,6 +1045,7 @@ typedef enum
LOCALE_IMDB_DATA_METASCORE,
LOCALE_IMDB_DATA_PLOT,
LOCALE_IMDB_DATA_PRODUCTION,
LOCALE_IMDB_DATA_RATING,
LOCALE_IMDB_DATA_RATING_FAILED,
LOCALE_IMDB_DATA_RELEASED,
LOCALE_IMDB_DATA_RUNTIME,

View File

@@ -1045,6 +1045,7 @@ const char * locale_real_names[] =
"imdb.data_metascore",
"imdb.data_plot",
"imdb.data_production",
"imdb.data_rating",
"imdb.data_rating_failed",
"imdb.data_released",
"imdb.data_runtime",