mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
cTmdb: simplyfy hintbox calls
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user