summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2020-09-22 18:13:18 +0200
committerhorchi <vdr@jwendel.de>2020-09-22 18:13:18 +0200
commit21ac459be351ebf9e8977f1a8617d0e60172c857 (patch)
tree19b80ec726138acacb75b9a1622cc835d60b38cd
parent6accbdd431ad2e2e4d7b1568840f7566e36e024d (diff)
downloadvdr-plugin-epg2vdr-21ac459be351ebf9e8977f1a8617d0e60172c857.tar.gz
vdr-plugin-epg2vdr-21ac459be351ebf9e8977f1a8617d0e60172c857.tar.bz2
2020-09-22: version 1.1.118 (horchi)\n - bugfix: Fixed problem with update of timer table\n\n1.1.118
-rw-r--r--HISTORY.h9
-rw-r--r--status.c22
-rw-r--r--update.c6
-rw-r--r--update.h3
4 files changed, 25 insertions, 15 deletions
diff --git a/HISTORY.h b/HISTORY.h
index 1215221..ddb1e11 100644
--- a/HISTORY.h
+++ b/HISTORY.h
@@ -5,8 +5,8 @@
*
*/
-#define _VERSION "1.1.117"
-#define VERSION_DATE "18.08.2020"
+#define _VERSION "1.1.118"
+#define VERSION_DATE "22.0.2020"
#define DB_API 7
@@ -19,8 +19,11 @@
/*
* ------------------------------------
+2020-09-22: version 1.1.118 (horchi)
+ - bugfix: Fixed problem with update of timer table
+
2020-08-18: version 1.1.117 (horchi)
- - addeed: compatibility to VDRs peering feature
+ - added: compatibility to VDRs peering feature
2020-08-17: version 1.1.116 (horchi, patch by kfb77)
- change: Improved match of series
diff --git a/status.c b/status.c
index 15fa8f3..dcda89b 100644
--- a/status.c
+++ b/status.c
@@ -96,20 +96,20 @@ int RecLengthInSecs(const cRecording* pRecording)
//***************************************************************************
// Notifications from VDRs Status Interface
//***************************************************************************
-//***************************************************************************
-// Timers Change Notification
-//***************************************************************************
+// //***************************************************************************
+// // Timers Change Notification
+// //***************************************************************************
-void cUpdate::TimerChange(const cTimer* Timer, eTimerChange Change)
-{
- if (!Epg2VdrConfig.shareInWeb)
- return;
+// void cUpdate::TimerChange(const cTimer* Timer, eTimerChange Change)
+// {
+// if (!Epg2VdrConfig.shareInWeb)
+// return;
- tell(1, "Timer changed, trigger update. Action was (%d)", Change);
+// tell(1, "Timer changed, trigger update. Action was (%d)", Change);
- timerTableUpdateTriggered = yes;
- waitCondition.Broadcast(); // wakeup
-}
+// timerTableUpdateTriggered = yes;
+// waitCondition.Broadcast(); // wakeup
+// }
//***************************************************************************
// Recording Notification (cStatus::MsgRecording(....))
diff --git a/update.c b/update.c
index c41e801..f70a34b 100644
--- a/update.c
+++ b/update.c
@@ -1383,6 +1383,12 @@ void cUpdate::Action()
{
// update timer - even when epgd is busy!
+ if (cTimers::GetTimersRead(timerStateKey))
+ {
+ timerTableUpdateTriggered = yes;
+ timerStateKey.Remove();
+ }
+
if (dbConnected() && timerTableUpdateTriggered)
updateTimerTable();
diff --git a/update.h b/update.h
index 4e0e0e2..181319f 100644
--- a/update.h
+++ b/update.h
@@ -154,7 +154,7 @@ class cUpdate : public cThread, public cStatus, public cParameters
// notifications from VDRs status interface
- virtual void TimerChange(const cTimer* Timer, eTimerChange Change);
+ // virtual void TimerChange(const cTimer* Timer, eTimerChange Change);
virtual void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On);
virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView);
@@ -250,6 +250,7 @@ class cUpdate : public cThread, public cStatus, public cParameters
int dbReconnectTriggered;
int timerJobsUpdateTriggered;
int timerTableUpdateTriggered;
+ cStateKey timerStateKey;
int manualTrigger;
int recordingStateChangedTrigger;
int recordingFullReloadTrigger;