mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
use CEitManager to get EIT data
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
#include <zapit/getservices.h>
|
||||
#include <zapit/zapit.h>
|
||||
#include <zapit/client/zapittools.h>
|
||||
#include <eitd/sectionsd.h>
|
||||
|
||||
/* TODO:
|
||||
* nextRecording / pending recordings - needs testing
|
||||
@@ -63,11 +64,6 @@
|
||||
|
||||
extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
|
||||
|
||||
bool sectionsd_getActualEPGServiceKey(const t_channel_id uniqueServiceKey, CEPGData * epgdata);
|
||||
bool sectionsd_getEPGidShort(event_id_t epgID, CShortEPGData * epgdata);
|
||||
bool sectionsd_getEPGid(const event_id_t epgID, const time_t startzeit, CEPGData * epgdata);
|
||||
bool sectionsd_getComponentTagsUniqueKey(const event_id_t uniqueKey, CSectionsdClient::ComponentTagList& tags);
|
||||
|
||||
extern "C" {
|
||||
#include <driver/genpsi.h>
|
||||
}
|
||||
@@ -353,7 +349,7 @@ void CRecordInstance::ProcessAPIDnames()
|
||||
|
||||
if(has_unresolved_ctags && (epgid != 0)) {
|
||||
CSectionsdClient::ComponentTagList tags;
|
||||
if(sectionsd_getComponentTagsUniqueKey(epgid, tags)) {
|
||||
if(CEitManager::getInstance()->getComponentTagsUniqueKey(epgid, tags)) {
|
||||
for(unsigned int i=0; i< tags.size(); i++) {
|
||||
for(unsigned int j=0; j< allpids.APIDs.size(); j++) {
|
||||
if(allpids.APIDs[j].component_tag == tags[i].componentTag) {
|
||||
@@ -403,7 +399,7 @@ record_error_msg_t CRecordInstance::Record()
|
||||
CEPGData epgData;
|
||||
epgData.epg_times.startzeit = 0;
|
||||
epgData.epg_times.dauer = 0;
|
||||
if (sectionsd_getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData )) {
|
||||
if (CEitManager::getInstance()->getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData )) {
|
||||
g_Timerd->getRecordingSafety(pre, post);
|
||||
if (epgData.epg_times.startzeit > 0)
|
||||
record_end = epgData.epg_times.startzeit + epgData.epg_times.dauer + post;
|
||||
@@ -508,7 +504,7 @@ void CRecordInstance::FillMovieInfo(CZapitChannel * channel, APIDList & apid_lis
|
||||
tmpstring = "not available";
|
||||
if (epgid != 0) {
|
||||
CEPGData epgdata;
|
||||
if (sectionsd_getEPGid(epgid, epg_time, &epgdata)) {
|
||||
if (CEitManager::getInstance()->getEPGid(epgid, epg_time, &epgdata)) {
|
||||
tmpstring = epgdata.title;
|
||||
info1 = epgdata.info1;
|
||||
info2 = epgdata.info2;
|
||||
@@ -614,7 +610,7 @@ record_error_msg_t CRecordInstance::MakeFileName(CZapitChannel * channel)
|
||||
if (g_settings.recording_epg_for_filename) {
|
||||
if(epgid != 0) {
|
||||
CShortEPGData epgdata;
|
||||
if(sectionsd_getEPGidShort(epgid, &epgdata)) {
|
||||
if(CEitManager::getInstance()->getEPGidShort(epgid, &epgdata)) {
|
||||
if (!(epgdata.title.empty())) {
|
||||
strcpy(&(filename[pos]), epgdata.title.c_str());
|
||||
ZapitTools::replace_char(&filename[pos]);
|
||||
@@ -803,7 +799,7 @@ bool CRecordManager::Record(const t_channel_id channel_id, const char * dir, boo
|
||||
|
||||
eventinfo.eventID = 0;
|
||||
eventinfo.channel_id = channel_id;
|
||||
if (sectionsd_getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData )) {
|
||||
if (CEitManager::getInstance()->getActualEPGServiceKey(channel_id&0xFFFFFFFFFFFFULL, &epgData )) {
|
||||
eventinfo.epgID = epgData.eventID;
|
||||
eventinfo.epg_starttime = epgData.epg_times.startzeit;
|
||||
strncpy(eventinfo.epgTitle, epgData.title.c_str(), EPG_TITLE_MAXLEN-1);
|
||||
|
Reference in New Issue
Block a user