mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user