Ticket #9499: a

File a, 669 bytes (added by dougt@…, 14 years ago)

similar patch that works for multiple days

Line 
1--- a/mythtv/libs/libmythtv/datadirect.cpp
2+++ b/mythtv/libs/libmythtv/datadirect.cpp
3@@ -1022,7 +1022,7 @@ bool DataDirectProcessor::DDPost(
4         return false;
5 
6 #ifndef USING_MINGW
7-    command = QString("gzip -d %1").arg(outfile+".gz");
8+    command = QString("gzip -f -d %1").arg(outfile+".gz");
9     if (myth_system(command) != GENERIC_EXIT_OK)
10         return false;
11 #endif
12@@ -1221,6 +1221,8 @@ bool DataDirectProcessor::GrabData(const QDateTime pstartDate,
13         return false;
14     }
15 
16+    if (inputfile.isEmpty())
17+      inputfile = "/tmp/crap";
18     QFile file(inputfile);
19     file.open(QIODevice::ReadOnly);
20     QByteArray data = file.readAll();