bool cPVRClientForTheRecord::FetchRecordingDetails(std::string recordingid, cRecording& recording) { bool fRc = false; Json::Value recordingresponse; cRecordingSummary recordingsummary; int retval = ForTheRecord::GetRecordingById(recordingid, recordingresponse); if (retval >= 0) { if (recordingresponse.type() == Json::objectValue) { fRc = recording.Parse(recordingresponse); } } return fRc; }
time_t cVideoBufferRecording::GetRefTime() { return m_Recording->Start(); }
void myMenuRecordingInfo::Display(void) { cOsdMenu::Display(); #ifdef USE_GRAPHTFT cStatus::MsgOsdSetRecording(recording); #endif if(mysetup.UseVDRsRecInfoMenu) { DisplayMenu()->SetRecording(recording); if(recording->Info()->Description()) cStatus::MsgOsdTextItem(recording->Info()->Description()); } else { stringstream text; #if VDRVERSNUM > 10720 time_t start = recording->Start(); #else time_t start = recording->start; #endif text << *DateString(start) << ", " << *TimeString(start) << "\n\n"; if(recording->Info()->Title()) { text << recording->Info()->Title() << "\n\n"; if(recording->Info()->Description()) text << recording->Info()->Description() << "\n\n"; } string recname=recording->Name(); string::size_type i=recname.rfind('~'); if(i!=string::npos) text << tr("Name") << ": " << recname.substr(i+1,recname.length()) << "\n" << tr("Path") << ": " << recname.substr(0,i) << "\n"; else text << tr("Name") << ": " << recname << "\n"; cChannel *chan=Channels.GetByChannelID(((cRecordingInfo*)recording->Info())->ChannelID()); if(chan) text << tr("Channel") << ": " << *ChannelString(chan,0) << "\n"; int recmb=DirSizeMB(recording->FileName()); if(recmb<0) recmb=0; if(recmb > 1023) text << tr("Size") << ": " << setprecision(3) << recmb/1024.0 << " GB\n"; else text << tr("Size") << ": " << recmb << " MB\n"; #if VDRVERSNUM > 10720 int prio = recording->Priority(); int lft = recording->Lifetime(); #else int prio = recording->priority; int lft = recording->lifetime; #endif text << trVDR("Priority") << ": " << prio << "\n"; text << trVDR("Lifetime") << ": " << lft << "\n"; DisplayMenu()->SetText(text.str().c_str(),false); cStatus::MsgOsdTextItem(text.str().c_str()); } }