- epgview: introduce ResetMDb()

Conflicts:
	src/gui/epgview.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-05-25 22:52:17 +02:00
committed by Thilo Graf
parent 1be4fd2f6f
commit a316697502
2 changed files with 14 additions and 19 deletions

View File

@@ -133,9 +133,8 @@ CEpgData::CEpgData()
imdb = CIMDB::getInstance();
imdb_active = false;
tmdb = CTMDB::getInstance();
tmdb_active = false;
ResetMDb();
movie_filename.clear();
}
@@ -715,10 +714,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
startzeit=*a_startzeit;
id=a_id;
imdb_active = false;
imdb_stars = 0;
tmdb_active = false;
tmdb_stars = 0;
ResetMDb();
t_channel_id epg_id = channel_id;
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(channel_id);
@@ -1255,10 +1251,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
}
case CRCInput::RC_blue:
{
imdb_active = false;
imdb_stars = 0;
tmdb_active = false;
tmdb_stars = 0;
ResetMDb();
if(!followlist.empty() && !call_fromfollowlist){
hide();
@@ -1318,10 +1311,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
break;
}
case CRCInput::RC_help:
imdb_active = false;
imdb_stars = 0;
tmdb_active = false;
tmdb_stars = 0;
ResetMDb();
bigFonts = bigFonts ? false : true;
ResetModules();
@@ -1442,13 +1432,9 @@ void CEpgData::hide()
frameBuffer->paintBackgroundBoxRel(sx, sy, ox, oy);
showTimerEventBar (false);
// imdb
imdb_active = false;
imdb->cleanup();
// tmdb
tmdb_active = false;
tmdb->cleanup();
ResetMDb();
}
void CEpgData::GetEPGData(const t_channel_id channel_id, uint64_t id, time_t* startzeit, bool clear )
@@ -1697,6 +1683,14 @@ void CEpgData::ResetModules()
}
}
void CEpgData::ResetMDb()
{
imdb_active = false;
imdb_stars = 0;
tmdb_active = false;
tmdb_stars = 0;
}
// -- EPG Data Viewer Menu Handler Class
// -- to be used for calls from Menu