mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -386,11 +386,18 @@ std::string CIMDB::getEPGText()
|
||||
|
||||
std::string epgtext("");
|
||||
|
||||
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";
|
||||
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"))
|
||||
|
@@ -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";
|
||||
|
@@ -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,
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user