summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.27/mythtv/suggestedstarttime.patch.v1
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-11-19 18:19:58 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-11-19 18:19:58 (GMT)
commitae3b752a81135d139c057bb5f060a9ddcb8ab397 (patch)
tree9851fe9d2bf242152d47384643a69fb185184665 /abs/core/mythtv/stable-0.27/mythtv/suggestedstarttime.patch.v1
parent02f95477101b1afb1b9d1f54c3999d58eca41b16 (diff)
downloadlinhes_pkgbuild-ae3b752a81135d139c057bb5f060a9ddcb8ab397.zip
linhes_pkgbuild-ae3b752a81135d139c057bb5f060a9ddcb8ab397.tar.gz
linhes_pkgbuild-ae3b752a81135d139c057bb5f060a9ddcb8ab397.tar.bz2
mythtv mythplugins: update to latest .27-fixes. refs #933.
add suggestedstarttime patch for mythweb showing suggested start time of mythfilldatabase
Diffstat (limited to 'abs/core/mythtv/stable-0.27/mythtv/suggestedstarttime.patch.v1')
-rw-r--r--abs/core/mythtv/stable-0.27/mythtv/suggestedstarttime.patch.v132
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.27/mythtv/suggestedstarttime.patch.v1 b/abs/core/mythtv/stable-0.27/mythtv/suggestedstarttime.patch.v1
new file mode 100644
index 0000000..26d4c36
--- /dev/null
+++ b/abs/core/mythtv/stable-0.27/mythtv/suggestedstarttime.patch.v1
@@ -0,0 +1,32 @@
+diff --git a/mythtv/programs/mythbackend/httpstatus.cpp b/mythtv/programs/mythbackend/httpstatus.cpp
+index 8571a58..be0272f 100644
+--- a/mythtv/programs/mythbackend/httpstatus.cpp
++++ b/mythtv/programs/mythbackend/httpstatus.cpp
+@@ -1392,13 +1392,17 @@ int HttpStatus::PrintMachineInfo( QTextStream &os, QDomElement info )
+ QString sStatus = e.attribute( "status" , "" );
+ QDateTime next = MythDate::fromString( e.attribute( "next" , "" ));
+ QString sNext = next.isNull() ? "" :
+- MythDate::toString(next, MythDate::kDatabase);
++ MythDate::toString(next, MythDate::kDateTimeFull);
+ QString sMsg = "";
+
+ QDateTime thru = MythDate::fromString( e.attribute( "guideThru", "" ));
+
+ QDomText text = e.firstChild().toText();
+
++ QString mfdblrs =
++ gCoreContext->GetSetting("mythfilldatabaseLastRunStart");
++ QDateTime lastrunstart = MythDate::fromString(mfdblrs);
++
+ if (!text.isNull())
+ sMsg = text.nodeValue();
+
+@@ -1412,7 +1416,7 @@ int HttpStatus::PrintMachineInfo( QTextStream &os, QDomElement info )
+
+ os << sStatus << "<br />\r\n";
+
+- if (!next.isNull() && sNext >= sStart)
++ if (!next.isNull() && next >= lastrunstart)
+ {
+ os << " Suggested next mythfilldatabase run: "
+ << sNext << ".<br />\r\n";