[mythtv] Patch for mythfilldatabase to update RecordChanged db
setting
Andrew M. Bishop
amb at gedanken.demon.co.uk
Sat Jan 10 05:15:23 EST 2004
The patch below will cause the mythfilldatabase program to update the
RecordChanged setting in the database so that mythbackend will update
the list of programs to record.
-------------------- mythfilldatabase.diff --------------------
diff -u /tmp /home/amb/mythtv/v0.13/mythtv/programs/mythfilldatabase/filldata.cpp
--- /tmp/filldata.cpp 2004-01-10 10:07:24.000000000 +0000
+++ /home/amb/mythtv/v0.13/mythtv/programs/mythfilldatabase/filldata.cpp 2004-01-10 10:01:16.000000000 +0000
@@ -22,6 +22,7 @@
#include <time.h>
#include "libmyth/mythcontext.h"
+#include "libmythtv/scheduledrecording.h"
using namespace std;
@@ -1968,6 +1969,8 @@
else if (!quiet)
cout << update_count << " replacements made.\n";
+ ScheduledRecording::signalChange(db);
+
delete gContext;
return 0;
diff -u /tmp /home/amb/mythtv/v0.13/mythtv/programs/mythfilldatabase/mythfilldatabase.pro
--- /tmp/mythfilldatabase.pro 2004-01-10 10:07:29.000000000 +0000
+++ /home/amb/mythtv/v0.13/mythtv/programs/mythfilldatabase/mythfilldatabase.pro 2004-01-10 10:04:16.000000000 +0000
@@ -1,5 +1,5 @@
INCLUDEPATH += ../../libs/
-LIBS += -L../../libs/libmyth -L/usr/local/lib
+LIBS += -L../../libs/libmyth -L../../libs/libmythtv -L/usr/local/lib
include ( ../../settings.pro )
@@ -10,9 +10,9 @@
target.path = $${PREFIX}/bin
INSTALLS = target
-LIBS += -lmyth-$$LIBVERSION $$EXTRA_LIBS
+LIBS += -lmyth-$$LIBVERSION -lmythtv $$EXTRA_LIBS
-DEPENDPATH += ../../libs/libmyth
+DEPENDPATH += ../../libs/libmyth ../../libs/libmythtv
# Input
SOURCES += filldata.cpp
-------------------- mythfilldatabase.diff --------------------
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop amb at gedanken.demon.co.uk
http://www.gedanken.demon.co.uk/
More information about the mythtv-dev
mailing list