Opened 8 years ago

Closed 8 years ago

#10327 closed Bug Report - General (fixed)

mythfilldatabase Doesn't Update MythFillSuggestedRunTime

Reported by: Bill Meek <keemllib@…> Owned by: beirdo
Priority: minor Milestone: 0.25
Component: MythTV - Mythfilldatabase Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

mythfilldatabase runs successfully (every 3 hours), however, note the next suggested run time never changes.

mythfilldatabaseLastRunEnd    | 2012-02-12 12:48:40
mythfilldatabaseLastRunStart  | 2012-02-12 12:48:40
MythFillSuggestedRunTime      | 2012-02-10T01:11:11

To duplicate:

mythfilldatabase --dd-grab-all -v general,file --loglevel debug --logpath /var/log/mythtv

The following was added for debugging:

diff --git i/mythtv/libs/libmythtv/datadirect.cpp w/mythtv/libs/libmythtv/datadirect.cpp
index ee8b0b7..addae6a 100644
--- i/mythtv/libs/libmythtv/datadirect.cpp
+++ w/mythtv/libs/libmythtv/datadirect.cpp
@@ -1096,6 +1096,13 @@ bool DataDirectProcessor::GrabNextSuggestedTime(void)
     bool GotNextSuggestedTime = false;
     MUNUSED bool GotBlockedTime = false; 
 
+    if (file.size() == 0)
+    {
+        LOG(VB_GENERAL, LOG_WARNING, LOC +
+            QString("NextSuggestedTime has 0 bytes"));
+        return GotNextSuggestedTime;
+    }
+
     if (file.open(QIODevice::ReadOnly))
     {
         QTextStream stream(&file);

and prints on every run.

Attachments (2)

mythfilldatabase.20120212124727.8415.log (25.9 KB) - added by keemllib@… 8 years ago.
most lines with http: delete to get past Trac filter
version.txt (763 bytes) - added by Bill Meek <keemllib@…> 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by keemllib@…

most lines with http: delete to get past Trac filter

Changed 8 years ago by Bill Meek <keemllib@…>

Attachment: version.txt added

comment:1 Changed 8 years ago by beirdo

Owner: changed from stuartm to beirdo
Status: newassigned

comment:2 Changed 8 years ago by Github

Milestone: unknown0.25
Resolution: fixed
Status: assignedclosed

Fix the NextSuggestedTime? not being saved (oops)

Fixes #10327

Branch: master Changeset: a1d708f4e2c07c62d2f1bb6eee39ef10a4fc94f7

Note: See TracTickets for help on using tickets.