cTmdb: simplyfy hintbox calls

This commit is contained in:
2016-11-20 22:54:51 +01:00
parent 627098d937
commit 43383329a7

View File

@@ -63,18 +63,15 @@ cTmdb::cTmdb(std::string epgtitle)
key = g_settings.tmdb_api_key;
#endif
CHintBox* box = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_TMDB_READ_DATA));
box->paint();
CHintBox hintbox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_TMDB_READ_DATA));
hintbox.paint();
std::string lang = Lang2ISO639_1(g_settings.language);
GetMovieDetails(lang);
if ((minfo.result < 1 || minfo.overview.empty()) && lang != "en")
GetMovieDetails("en");
if (box != NULL) {
box->hide();
delete box;
}
hintbox.hide();
}
cTmdb::~cTmdb()