From 9455b0eedab2a6b3114fe086dc4afb5185d8e881 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 16 Jan 2014 20:58:14 +0100 Subject: [PATCH] CRecordInstance::FillMovieInfo: -fix epg title if epgid removed http://www.dbox2world.net/board293-cst-coolstream/board314-cst-coolstream-development/12026-probleme-mit-timeraufnahme/ --- src/driver/record.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/driver/record.cpp b/src/driver/record.cpp index da5343fb1..e8c49cca7 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -570,8 +570,23 @@ void CRecordInstance::FillMovieInfo(CZapitChannel * channel, APIDList & apid_lis recMovieInfo->length = epgdata.epg_times.dauer / 60; + printf("fsk:%d, Genre:%d, Dauer: %d\r\n",recMovieInfo->parentalLockAge,recMovieInfo->genreMajor,recMovieInfo->length); + } else if (!epgTitle.empty()) {//if old eepgid removed + tmpstring = epgTitle; + } else if(CEitManager::getInstance()->getActualEPGServiceKey(channel_id, &epgdata )){ + tmpstring = epgdata.title; + info1 = epgdata.info1; + info2 = epgdata.info2; + + recMovieInfo->parentalLockAge = epgdata.fsk; + if( !epgdata.contentClassification.empty() ) + recMovieInfo->genreMajor = epgdata.contentClassification[0]; + + recMovieInfo->length = epgdata.epg_times.dauer / 60; + printf("fsk:%d, Genre:%d, Dauer: %d\r\n",recMovieInfo->parentalLockAge,recMovieInfo->genreMajor,recMovieInfo->length); } + } else if (!epgTitle.empty()) { tmpstring = epgTitle; }