From 32c42cfcc8b220ea49aedc304e31ace4918306fc Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 2 Nov 2015 14:30:57 +0000 Subject: Create links.data file on first run, not when first link is created. Update TODO. --- TODO | 10 ++++++++++ vdrtva-2.3.c | 8 +++++++- vdrtva.c | 8 +++++++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index ea571cf..64d6129 100644 --- a/TODO +++ b/TODO @@ -18,6 +18,16 @@ Remove reliance on VDR "Housekeeping" callback - causes problems when VDR is bus Remove need to patch core VDR for accurate recordings. +Better compliance with NORDIG specification: + - Series lifetime should be 91 days (14.3.3) + - Default Authority of a channel may change (14.3.3) + - VDR timers list should show if event is part of a series (14.3.3) + - Option to record series via CLI (14.3.3.1) + - Use CRIDs to offer better choice for late recording (14.3.13) + - Timer conflict resolution per spec (14.3.16.2) + +Fix data capture at startup for devices which have no RTC (eg Raspberry Pi). + Bugs: Very rare crash 'pure virtual method called' in plugin - possibly solved. VDR crash under specific circumstances, cannot reproduce elsewhere. diff --git a/vdrtva-2.3.c b/vdrtva-2.3.c index b64f1ea..a9a74d7 100644 --- a/vdrtva-2.3.c +++ b/vdrtva-2.3.c @@ -1414,7 +1414,13 @@ void cLinks::Load() fclose (f); isyslog("vdrtva: loaded %d series links", MaxNumber()); } - else esyslog("vdrtva: series links file not found"); + else { + if (f = fopen(curlinks, "w")) { + isyslog("vdrtva: created new empty series links file"); + fclose (f); + } + else esyslog("vdrtva: failed to create new empty series links file"); + } dirty = false; } diff --git a/vdrtva.c b/vdrtva.c index 18b6a4e..c7a7c23 100644 --- a/vdrtva.c +++ b/vdrtva.c @@ -1407,7 +1407,13 @@ void cLinks::Load() fclose (f); isyslog("vdrtva: loaded %d series links", MaxNumber()); } - else esyslog("vdrtva: series links file not found"); + else { + if (f = fopen(curlinks, "w")) { + isyslog("vdrtva: created new empty series links file"); + fclose (f); + } + else esyslog("vdrtva: failed to create new empty series links file"); + } dirty = false; } -- cgit v1.2.3