[mythtv-users] CVS wget gzip problem - FIXED! ( I think )

Nathan Elliott nelliott at gci.com
Wed May 12 00:22:38 EDT 2004


Summary:

Problem:  WGET retrieved GZIP files from DD server, but local proxy (IPCOP
with DansGuardian) unzipped the files before handing them off to the local
client. (This is still a mystery to me)

Solution ( ok...hack-job )-  Edit the /libs/libmythtv/datadirect.cpp file to
stop piping the output from wget through gzip:

OLD LINES 440-446
------------
    QString command = QString("wget --http-user='%1' --http-passwd='%2' "
                              "--post-file='%3'
--header='Accept-Encoding:gzip'"
                              " %4 --output-document=- | gzip -d")
                             .arg(getUserID())
                             .arg(getPassword())
                             .arg(tmpfilename)
                             .arg(ddurl);
------------

NEW LINES 440-446
------------
    QString command = QString("wget --http-user='%1' --http-passwd='%2' "
                              "--post-file='%3'
--header='Accept-Encoding:gzip'"
                              " %4 --output-document=- ")
                             .arg(getUserID())
                             .arg(getPassword())
                             .arg(tmpfilename)
                             .arg(ddurl);
------------

Since I'm not sure how to figure out which parts I needed to rebuild and
which I didn't I next did "make distclean" followed by "make" and "make
install"

Everything works now!

Obviously the big issue with this is that I will need to rebuild again if I
ever change/remove my proxy server.

If this is a common problem, it seems like it would be fairly simple to
modify MYTHTV to check the files it downloads to see if they are gzip files
or not before processing it??

Anyways, thanks to everyone who helped out for getting me pointed in the
right direction!!

Nathan


More information about the mythtv-users mailing list