diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 91c47d170..867d6b748 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -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 diff --git a/data/locale/english.locale b/data/locale/english.locale index 4facbe5fc..7c4dd863c 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -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 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 c9991bfe2..d36fba1db 100644 --- a/src/gui/mdb-tmdb.cpp +++ b/src/gui/mdb-tmdb.cpp @@ -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"; diff --git a/src/system/locals.h b/src/system/locals.h index 739652a5f..d54fdb118 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -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, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index e1a9db10a..57cd49873 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -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",