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;
|
key = g_settings.tmdb_api_key;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CHintBox* box = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_TMDB_READ_DATA));
|
CHintBox hintbox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_TMDB_READ_DATA));
|
||||||
box->paint();
|
hintbox.paint();
|
||||||
|
|
||||||
std::string lang = Lang2ISO639_1(g_settings.language);
|
std::string lang = Lang2ISO639_1(g_settings.language);
|
||||||
GetMovieDetails(lang);
|
GetMovieDetails(lang);
|
||||||
if ((minfo.result < 1 || minfo.overview.empty()) && lang != "en")
|
if ((minfo.result < 1 || minfo.overview.empty()) && lang != "en")
|
||||||
GetMovieDetails("en");
|
GetMovieDetails("en");
|
||||||
|
|
||||||
if (box != NULL) {
|
hintbox.hide();
|
||||||
box->hide();
|
|
||||||
delete box;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cTmdb::~cTmdb()
|
cTmdb::~cTmdb()
|
||||||
|
Reference in New Issue
Block a user