mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
epgview: introduce ResetMDb()
Origin commit data
------------------
Commit: b3e981cc3e
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-25 (Tue, 25 May 2021)
Origin message was:
------------------
- epgview: introduce ResetMDb()
This commit is contained in:
@@ -133,9 +133,8 @@ CEpgData::CEpgData()
|
|||||||
|
|
||||||
|
|
||||||
imdb = CIMDB::getInstance();
|
imdb = CIMDB::getInstance();
|
||||||
imdb_active = false;
|
|
||||||
tmdb = CTMDB::getInstance();
|
tmdb = CTMDB::getInstance();
|
||||||
tmdb_active = false;
|
ResetMDb();
|
||||||
movie_filename.clear();
|
movie_filename.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -731,10 +730,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
startzeit=*a_startzeit;
|
startzeit=*a_startzeit;
|
||||||
id=a_id;
|
id=a_id;
|
||||||
|
|
||||||
imdb_active = false;
|
ResetMDb();
|
||||||
imdb_stars = 0;
|
|
||||||
tmdb_active = false;
|
|
||||||
tmdb_stars = 0;
|
|
||||||
|
|
||||||
t_channel_id epg_id = channel_id;
|
t_channel_id epg_id = channel_id;
|
||||||
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(channel_id);
|
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(channel_id);
|
||||||
@@ -1271,10 +1267,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
}
|
}
|
||||||
case CRCInput::RC_blue:
|
case CRCInput::RC_blue:
|
||||||
{
|
{
|
||||||
imdb_active = false;
|
ResetMDb();
|
||||||
imdb_stars = 0;
|
|
||||||
tmdb_active = false;
|
|
||||||
tmdb_stars = 0;
|
|
||||||
|
|
||||||
if(!followlist.empty() && !call_fromfollowlist){
|
if(!followlist.empty() && !call_fromfollowlist){
|
||||||
hide();
|
hide();
|
||||||
@@ -1334,10 +1327,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CRCInput::RC_help:
|
case CRCInput::RC_help:
|
||||||
imdb_active = false;
|
ResetMDb();
|
||||||
imdb_stars = 0;
|
|
||||||
tmdb_active = false;
|
|
||||||
tmdb_stars = 0;
|
|
||||||
|
|
||||||
bigFonts = bigFonts ? false : true;
|
bigFonts = bigFonts ? false : true;
|
||||||
ResetModules();
|
ResetModules();
|
||||||
@@ -1458,13 +1448,9 @@ void CEpgData::hide()
|
|||||||
frameBuffer->paintBackgroundBoxRel(sx, sy, ox, oy);
|
frameBuffer->paintBackgroundBoxRel(sx, sy, ox, oy);
|
||||||
showTimerEventBar (false);
|
showTimerEventBar (false);
|
||||||
|
|
||||||
// imdb
|
|
||||||
imdb_active = false;
|
|
||||||
imdb->cleanup();
|
imdb->cleanup();
|
||||||
|
|
||||||
// tmdb
|
|
||||||
tmdb_active = false;
|
|
||||||
tmdb->cleanup();
|
tmdb->cleanup();
|
||||||
|
ResetMDb();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CEpgData::GetEPGData(const t_channel_id channel_id, uint64_t id, time_t* startzeit, bool clear )
|
void CEpgData::GetEPGData(const t_channel_id channel_id, uint64_t id, time_t* startzeit, bool clear )
|
||||||
@@ -1713,6 +1699,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
|
// -- EPG Data Viewer Menu Handler Class
|
||||||
// -- to be used for calls from Menu
|
// -- to be used for calls from Menu
|
||||||
|
|
||||||
|
@@ -102,6 +102,7 @@ class CEpgData
|
|||||||
void showTimerEventBar(bool show, bool adzap = false, bool mp_info = false);
|
void showTimerEventBar(bool show, bool adzap = false, bool mp_info = false);
|
||||||
void showProgressBar();
|
void showProgressBar();
|
||||||
bool isCurrentEPG(const t_channel_id channel_id);
|
bool isCurrentEPG(const t_channel_id channel_id);
|
||||||
|
void ResetMDb();
|
||||||
|
|
||||||
std::string epg_title;
|
std::string epg_title;
|
||||||
std::string movie_filename;
|
std::string movie_filename;
|
||||||
|
Reference in New Issue
Block a user