vdr create zerosize info.vdr
Commit Message
Hi,
I'm notice, that's vdr(1.3.28) create a empty info.vdr for recordings
on some cases. (A file with 0 bytes size)
I think follow cause are responsible, the eye-catching timer was create
on channel without epg data (Event are undefined) and this timer was
defined without summary.
the attached file, should fix this
Cu,
Andreas
@@ -425,6 +425,9 @@
lifetime = Timer->Lifetime();
// handle info:
info = new cRecordingInfo(Event);
+ // Set data ifn't defined from associated Event
+ if (isempty(info->Title()))
+ info->SetData(Timer->File(), NULL, Timer->Summary());
// this is a somewhat ugly hack to get the 'summary' information from the
// timer into the recording info, but it saves us from having to actually
// copy the entire event data: