tmdb: Add hintbox when search data

Origin commit data
------------------
Commit: c5d1120f9f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-03-04 (Fri, 04 Mar 2016)
This commit is contained in:
Michael Liebmann
2016-03-04 13:57:34 +01:00
parent 624b4b3035
commit ae83c0dda8
7 changed files with 15 additions and 0 deletions

View File

@@ -36,6 +36,7 @@
#include "system/settings.h"
#include "system/helpers.h"
#include "system/set_threadname.h"
#include "gui/widget/hintbox.h"
#include <driver/screen_max.h>
@@ -73,10 +74,18 @@ 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();
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;
}
}
cTmdb::~cTmdb()