[mythtvnz] EPG script fails to update mythfilldatabase

Paulgir paulgir at gmail.com
Mon Jun 6 00:00:55 BST 2016


Hi all

As I mentioned in my last post,the EPG update script I had been using for  
several years failed from a week ago.
I have resolved the problem now.This is what happened.

The script worked if I executed it manually but not if run by cron.

The script is:

#! /bin/bash
wget http://epg.org.nz/freeview.xml.gz
gzip -d freeview.xml.gz
mythfilldatabase --update --file --sourceid 1 --xmlfile freeview.xml
rm freeview.xml
exit


I arranged to have the output mailed to a file and saw this message:

...........................................................................

saving to: `freeview.xml.gz.10'

      0K .......... .......... .......... .......... .......... 29%  166K 1s
     50K .......... .......... .......... .......... .......... 59%  170K 0s
    100K .......... .......... .......... .......... .......... 89%  166K 0s
    150K .......... .......                                    100%   
173K=1.0s

2016-06-06 10:32:03 (168 KB/s) - `freeview.xml.gz.10' saved [171009/171009]


gzip: freeview.xml.gz: not in gzip format

....................................................................................


I noted the ".10" added to the gzip archive and found 10 freeview.xml.gz  
archives in the root directory.I deleted these and now it works fine when  
run by cron.
It appears for some reason a week ago the freeview.xml.gz file wasn't  
removed automatically when the extraction was done.

Cheers

-Paul



More information about the mythtvnz mailing list