imdb/tmdb: more unifications; getEPGText()

Origin commit data
------------------
Commit: 8be9c87929
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-03 (Mon, 03 May 2021)

Origin message was:
------------------
- imdb/tmdb: more unifications; getEPGText()
This commit is contained in:
vanhofen
2021-05-03 01:00:35 +02:00
parent 4597c03068
commit c4de9c36fc
6 changed files with 15 additions and 4 deletions

View File

@@ -1074,6 +1074,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

@@ -1074,6 +1074,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

@@ -200,7 +200,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

@@ -1101,6 +1101,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

@@ -1101,6 +1101,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",