mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
dont use tmdb if api key not defined
This commit is contained in:
@@ -680,6 +680,7 @@ int CEpgData::show_mp(MI_MOVIE_INFO *mp_movie_info, int /*mp_position*/, int /*m
|
|||||||
int h = std::max(fh, icol_h+4);
|
int h = std::max(fh, icol_h+4);
|
||||||
int aw = ox - 20 - 2 * (ICON_LARGE_WIDTH + 2);
|
int aw = ox - 20 - 2 * (ICON_LARGE_WIDTH + 2);
|
||||||
frameBuffer->paintBoxRel(sx,sy+oy,ox,h, COL_INFOBAR_SHADOW_PLUS_1, RADIUS_LARGE, CORNER_BOTTOM);
|
frameBuffer->paintBoxRel(sx,sy+oy,ox,h, COL_INFOBAR_SHADOW_PLUS_1, RADIUS_LARGE, CORNER_BOTTOM);
|
||||||
|
if (g_settings.tmdb_api_key != "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
|
||||||
::paintButtons(sx + 10, sy+oy, 0, 2, Button, aw, h, "", false, COL_INFOBAR_SHADOW_TEXT, NULL, 1);
|
::paintButtons(sx + 10, sy+oy, 0, 2, Button, aw, h, "", false, COL_INFOBAR_SHADOW_TEXT, NULL, 1);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@@ -744,6 +745,7 @@ int CEpgData::show_mp(MI_MOVIE_INFO *mp_movie_info, int /*mp_position*/, int /*m
|
|||||||
|
|
||||||
case CRCInput::RC_info:
|
case CRCInput::RC_info:
|
||||||
{
|
{
|
||||||
|
if (g_settings.tmdb_api_key != "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"){
|
||||||
showPos = 0;
|
showPos = 0;
|
||||||
if (!tmdbtoggle) {
|
if (!tmdbtoggle) {
|
||||||
cTmdb* tmdb = new cTmdb(mp_movie_info->epgTitle);
|
cTmdb* tmdb = new cTmdb(mp_movie_info->epgTitle);
|
||||||
@@ -769,11 +771,14 @@ int CEpgData::show_mp(MI_MOVIE_INFO *mp_movie_info, int /*mp_position*/, int /*m
|
|||||||
stars=0;
|
stars=0;
|
||||||
showText(showPos, sy + toph);
|
showText(showPos, sy + toph);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CRCInput::RC_red:
|
case CRCInput::RC_red:
|
||||||
{
|
{
|
||||||
if (tmdbtoggle) {
|
if (g_settings.tmdb_api_key != "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
|
||||||
|
break;
|
||||||
|
else if (tmdbtoggle) {
|
||||||
mp_movie_info->epgInfo2 = tmdb_str;
|
mp_movie_info->epgInfo2 = tmdb_str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1291,6 +1296,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
break;
|
break;
|
||||||
case CRCInput::RC_info:
|
case CRCInput::RC_info:
|
||||||
{
|
{
|
||||||
|
if (g_settings.tmdb_api_key != "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"){
|
||||||
showPos = 0;
|
showPos = 0;
|
||||||
if (!tmdbtoggle) {
|
if (!tmdbtoggle) {
|
||||||
cTmdb* tmdb = new cTmdb(epgData.title);
|
cTmdb* tmdb = new cTmdb(epgData.title);
|
||||||
@@ -1313,6 +1319,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
stars=0;
|
stars=0;
|
||||||
showText(showPos, sy + toph);
|
showText(showPos, sy + toph);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1856,7 +1856,7 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
|
|||||||
unlink(fname.c_str());
|
unlink(fname.c_str());
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
}else {
|
}else if (g_settings.tmdb_api_key != "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"){
|
||||||
//add TMDB Cover
|
//add TMDB Cover
|
||||||
fname = m_movieSelectionHandler->file.Name.c_str();
|
fname = m_movieSelectionHandler->file.Name.c_str();
|
||||||
int ext_pos = 0;
|
int ext_pos = 0;
|
||||||
|
Reference in New Issue
Block a user