Opened 14 years ago
Closed 14 years ago
#9499 closed Bug Report (Fixed)
Cannot retrieve lineups in mythtv-setup
Reported by: | 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)
Change History (4)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Owner: | changed from danielk to beirdo |
---|---|
Status: | new → assigned |
Gavin mentioned he was going to look into this.
comment:3 Changed 14 years ago by
Component: | MythTV - Mythtv-setup → MythTV - Mythfilldatabase |
---|---|
Milestone: | unknown → 0.25 |
Resolution: | → Fixed |
Status: | assigned → closed |
This should now be fixed. Committed in 77616baec432 on master.
Note: See
TracTickets for help on using
tickets.
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.