disable tmdb, when tmdb_api_key is empty

Origin commit data
------------------
Commit: bbccd92b49
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-06 (Sat, 06 Aug 2016)

Origin message was:
------------------
- disable tmdb, when tmdb_api_key is empty
This commit is contained in:
vanhofen
2016-08-06 22:29:26 +02:00
parent 2d54a78eb1
commit ed8e7c6d78
4 changed files with 5 additions and 3 deletions

View File

@@ -1015,7 +1015,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
break;
case CRCInput::RC_info:
{
if (g_settings.tmdb_api_key != "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
if (g_settings.tmdb_enabled)
{
showPos = 0;
if (!tmdb_active) {
@@ -1366,7 +1366,7 @@ void CEpgData::showTimerEventBar (bool pshow, bool adzap, bool mp_info)
adzap_button += " " + to_string(g_settings.adzap_zapBackPeriod / 60) + " ";
adzap_button += g_Locale->getText(LOCALE_UNIT_SHORT_MINUTE);
}
bool tmdb = (g_settings.tmdb_api_key != "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
bool tmdb = g_settings.tmdb_enabled;
bool fscr = (has_follow_screenings && !call_fromfollowlist);
if (mp_info)
::paintButtons(x, y, w, tmdb ? 2 : 1, EpgButtons[2], w, h);