diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 93a7ec645..df854245d 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -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 diff --git a/data/locale/english.locale b/data/locale/english.locale index 251b9872c..af31ba7e0 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -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 diff --git a/src/gui/mdb-imdb.cpp b/src/gui/mdb-imdb.cpp index ebda175a2..ffb78fb0d 100644 --- a/src/gui/mdb-imdb.cpp +++ b/src/gui/mdb-imdb.cpp @@ -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")) diff --git a/src/gui/mdb-tmdb.cpp b/src/gui/mdb-tmdb.cpp index 5318067d3..f74509029 100644 --- a/src/gui/mdb-tmdb.cpp +++ b/src/gui/mdb-tmdb.cpp @@ -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"; diff --git a/src/system/locals.h b/src/system/locals.h index bb140b043..ce5ff35da 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -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, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index 4d43ab83d..d75242303 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -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",