Opened 14 years ago

Closed 14 years ago

#9499 closed Bug Report (Fixed)

Cannot retrieve lineups in mythtv-setup

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

Description

Process gets as far as grabbing data from datadirect to /tmp/crap (yes I love that name) but fails in DataDirectProcessor::GrabData? because inputfile is empty. I "fixed" with the change below. That allows me to continue but may not be the best way to fix it of course.

diff --git a/mythtv/libs/libmythtv/datadirect.cpp b/mythtv/libs/libmythtv/datadirect.cpp
index 7257606..b32f9ac 100644
--- a/mythtv/libs/libmythtv/datadirect.cpp
+++ b/mythtv/libs/libmythtv/datadirect.cpp
@@ -1221,6 +1221,8 @@ bool DataDirectProcessor::GrabData(const QDateTime pstartDate,
         return false;
     }

+    if (inputfile.isEmpty())
+        inputfile = "/tmp/crap";
     QFile file(inputfile);
     file.open(QIODevice::ReadOnly);
     QByteArray data = file.readAll();

Attachments (1)

a (669 bytes) - added by dougt@… 14 years ago.
similar patch that works for multiple days

Download all attachments as: .zip

Change History (4)

comment:1 Changed 14 years ago by dougt@…

This patch works for me (although I am in no position to say that this patch is most correct). I also had to rm -rf /tmp/crap as that directory existed and the gz extraction failed.

without this patch, myth will run out of upcoming data, and it will stop recording stuff.

comment:2 Changed 14 years ago by sphery

Owner: changed from danielk to beirdo
Status: newassigned

Gavin mentioned he was going to look into this.

Changed 14 years ago by dougt@…

Attachment: a added

similar patch that works for multiple days

comment:3 Changed 14 years ago by beirdo

Component: MythTV - Mythtv-setupMythTV - Mythfilldatabase
Milestone: unknown0.25
Resolution: Fixed
Status: assignedclosed

This should now be fixed. Committed in 77616baec432 on master.

Note: See TracTickets for help on using tickets.