[mythtvnz] EPG update problems

Paulgir paulgir at gmail.com
Mon Jun 11 21:58:37 BST 2012


On Sun, 10 Jun 2012 16:30:44 +1200, Curtis Walker <sultanoswing at gmail.com>  
wrote:

> On 10 June 2012 13:52, Paulgir <paulgir at gmail.com> wrote:
>>
>> On Sun, 10 Jun 2012 13:36:41 +1200, Nick Rout <nick.rout at gmail.com>  
>> wrote:
>>
>>> On Sun, Jun 10, 2012 at 1:07 PM, Curtis Walker <sultanoswing at gmail.com>
>>> wrote:
>>>>
>>>> On 10 June 2012 12:24, David Moore <dmoo1790 at ihug.co.nz> wrote:
>>>>>
>>>>>
>>>>> On 10/06/12 09:31, Paulgir wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hi All
>>>>>>
>>>>>> Till now,due to the lack of a permanent LAN connection,I have been
>>>>>> updating the EPG by manually running tv_grab_nz-py and then
>>>>>> mythfilldatabase weekly.
>>>>>> I now have a wireless LAN,so I am trying to automate the process.
>>>>>> I have run into problems.I have followed these instructions:
>>>>>>
>>>>>>
>>>>>> http://www.gossamer-threads.com/lists/mythtv/mythtvnz/501519?search_string=tv_grab_nz-py;#501519
>>>>>>
>>>>>> Am I correct to think that running tv_grab_nz-py should  
>>>>>> automatically
>>>>>> cause mythfilldatabase to run,updating the EPG.In my case it  
>>>>>> doesn't.
>>>>>> I can only achieve this by manually running mythfilldatabase.
>>>>>> I have tried to use this alternative method From another thread:
>>>>>>
>>>>>> "Oh - and once you're done - here's an easy script to import the EPG
>>>>>> data:
>>>>>>
>>>>>> #! /bin/bash
>>>>>> wget http://nzepg.org/freeview.xml.gz
>>>>>> gunzip freeview.xml.gz
>>>>>> mythfilldatabase --file 1 freeview.xml --update
>>>>>> rm freeview.xml
>>>>>> exit
>>>>>>
>>>>>> Paste it into a text file, save it with a ".sh" extension, make it
>>>>>> executable (chmod +x) then run it as a daily cron task at, say, 3am
>>>>>> and
>>>>>> you never need be without an up-to-date EPG!"
>>>>>>
>>>>>>
>>>>>>
>>>>>> This also does not work for me.When I run this script in a terminal  
>>>>>> I
>>>>>> get the following output:
>>>>>>
>>>>>> myth at myth:~$ /home/myth/nzepg_download.sh
>>>>>> --2012-06-10 09:01:34-- http://nzepg.org/freeview.xml.gz
>>>>>> Resolving nzepg.org... 74.207.253.88
>>>>>> Connecting to nzepg.org|74.207.253.88|:80... connected.
>>>>>> HTTP request sent, awaiting response... 200 OK
>>>>>> Length: 189441 (185K) [application/octet-stream]
>>>>>> Saving to: `freeview.xml.gz'
>>>>>>
>>>>>> 100%[======================================>] 189,441 227K/s in 0.8s
>>>>>>
>>>>>> 2012-06-10 09:01:36 (227 KB/s) - `freeview.xml.gz' saved
>>>>>> [189441/189441]
>>>>>>
>>>>>> Boolean type options do not accept values:
>>>>>> --file
>>>>>> Received '1' but unassociated arguments have not been enabled
>>>>>> mythfilldatabase version: fixes/0.25 [v0.25-94-gec51a97]
>>>>>> www.mythtv.org
>>>>>>
>>>>>>
>>>>>> Mythfilldatabase does not run as a result of this script.
>>>>>> Any suggestions that might get either method working will be
>>>>>> appreciated.
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>
>>>>> They changed the mythfilldatabase syntax in 0.25. Grr. God knows why
>>>>> they
>>>>> couldn't just _extend_ it instead of changing it and immediately
>>>>> breaking
>>>>> thousands of myth user scripts. Really dumb IMHO. Anyway you now need
>>>>> this:
>>>>>
>>>>> mythfilldatabase --file --sourceid 1 --xmlfile freeview.xml --update
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> mythtvnz mailing list
>>>>> mythtvnz at lists.linuxnut.co.nz
>>>>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>>>>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>>>
>>>>
>>>>
>>>> As David says, that change will get my script working again :)
>>>>
>>>> I have did update the instructions for it on the archives here once I
>>>> realised Myth had changed the syntax requirements.
>>>
>>>
>>> You don't need to run any script. Simply set tv_grab_nz-py as your
>>> xmltv grabber in mythtv-setup. mythfilldatabase will run automatically
>>> every day.
>>>
>> I will also try that.You may be correct that I don't actually have a
>> problem with
>> tv_grab_nz-py.I will check to see what db updates are occurring.I've set
>> cron to run the
>> script at 18:30 daily  updates also occur at other times I will know
>> tv_grab_nz-py is working too.
>>
>> The script is working well.Thanks everyone.
>>
>>
>> _______________________________________________
>> mythtvnz mailing list
>> mythtvnz at lists.linuxnut.co.nz
>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>
> Good to hear it's working. Yes, you don't NEED anything else other
> than the tv_grab_nz.py if it works for you, but IMHO it still seems
> less elegant (as evidenced by numbers of lines of code) than my script
> ;)
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/

I have been doing some further playing with the automated EPG update in  
MythTV backend set up.
If I set the time for mythfilldatabase to run,it runs and  I get a failed  
message on the status page.

" xmltv returned error code 2"
I can't find what error code 2 is.

If I run mythfilldatabase any other way i.e. manually, it updates ok.
Here is the mythfilldatabase log:

Jun 12 08:14:09 myth mythfilldatabase[2572]: C thread_unknown  
mythcommandlineparser.cpp:2534 (ConfigureLogging) mythfilldatabase  
version: fixes/0.25 [v0.25.1-2-g648f0ae] www.mythtv.org
Jun 12 08:14:09 myth mythfilldatabase[2572]: C thread_unknown  
mythcommandlineparser.cpp:2536 (ConfigureLogging) Qt version: compile:  
4.7.4, runtime: 4.7.4
Jun 12 08:14:09 myth mythfilldatabase[2572]: N thread_unknown  
mythcommandlineparser.cpp:2538 (ConfigureLogging) Enabled verbose msgs:   
general
Jun 12 08:14:09 myth mythfilldatabase[2572]: N thread_unknown  
logging.cpp:1176 (logStart) Setting Log Level to LOG_INFO
Jun 12 08:14:09 myth mythfilldatabase[2572]: I thread_unknown  
logging.cpp:229 (FileLogger) Added logging to the console
Jun 12 08:14:09 myth mythfilldatabase[2572]: I thread_unknown  
logging.cpp:369 (SyslogLogger) Added syslogging to facility local7
Jun 12 08:14:09 myth mythfilldatabase[2572]: I thread_unknown  
logging.cpp:425 (DatabaseLogger) Added database logging to table logging
Jun 12 08:14:09 myth mythfilldatabase[2572]: N thread_unknown  
logging.cpp:1215 (logStart) Setting up SIGHUP handler
Jun 12 08:14:09 myth mythfilldatabase[2572]: N thread_unknown  
mythdirs.cpp:51 (InitializeMythDirs) Using runtime prefix = /usr
Jun 12 08:14:09 myth mythfilldatabase[2572]: N thread_unknown  
mythdirs.cpp:64 (InitializeMythDirs) Using configuration directory =  
/home/mythtv/.mythtv
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
mythcorecontext.cpp:227 (Init) Assumed character encoding: en_NZ.UTF-8
Jun 12 08:14:09 myth mythfilldatabase[2572]: N CoreContext  
mythcontext.cpp:477 (LoadDatabaseSettings) Empty LocalHostName.
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
mythcontext.cpp:481 (LoadDatabaseSettings) Using localhost value of myth
Jun 12 08:14:09 myth mythfilldatabase[2572]: N CoreContext  
mythcorecontext.cpp:1270 (InitLocale) Setting QT default locale to en_NZ
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
mythcorecontext.cpp:1303 (SaveLocaleDefaults) Current locale en_NZ
Jun 12 08:14:09 myth mythfilldatabase[2572]: E CoreContext  
mythlocale.cpp:108 (LoadDefaultsFromXML) No locale defaults file for  
en_NZ, skipping
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
mythtranslation.cpp:66 (load) Loading en_gb translation for module  
mythfrontend
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
schemawizard.cpp:117 (Compare) Current MythTV Schema Version  
(DBSchemaVer): 1299
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
filldata.cpp:600 (Run) Updating source #1 (Freeview) with grabber  
tv_grab_nz-py
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
filldata.cpp:615 (Run) Found 31 channels for source 1 which use grabber
Jun 12 08:14:09 myth mythfilldatabase[2572]: I SystemManager  
system-unix.cpp:263 (run) Starting process manager
Jun 12 08:14:09 myth mythfilldatabase[2572]: I SystemIOHandlerW  
system-unix.cpp:90 (run) Starting IO manager (write)
Jun 12 08:14:09 myth mythfilldatabase[2572]: I SystemIOHandlerR  
system-unix.cpp:90 (run) Starting IO manager (read)
Jun 12 08:14:09 myth mythfilldatabase[2572]: I SystemSignalManager  
system-unix.cpp:485 (run) Starting process signal handler
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
filldata.cpp:672 (Run) Grabber has capabilities: baseline manualconfig  
preferredmethod cache
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
filldata.cpp:695 (Run) Grabber prefers method: allatonce
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
filldata.cpp:397 (GrabData) XMLTV config file is:  
/home/mythtv/.mythtv/Freeview.xmltv
Jun 12 08:14:09 myth mythfilldatabase[2572]: E CoreContext  
filldata.cpp:468 (GrabData) FillData: xmltv returned error code 2
Jun 12 08:14:09 myth mythfilldatabase[2572]: E CoreContext  
xmltvparser.cpp:601 (parseFile) Error in 1:1: unexpected end of file
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
icondata.cpp:164 (UpdateSourceIcons) IconData: Updating icons for  
sourceid: 1
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext  
filldata.cpp:339 (GrabDataFromFile) No programs found in data.
Jun 12 08:14:09 myth mythfilldatabase[2572]: E CoreContext main.cpp:486  
(main) Failed to fetch some program info
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:527  
(main) Adjusting program database end times.
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:533  
(main)     0 replacements made
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:538  
(main) Marking generic episodes.
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:550  
(main)     Found 0
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:556  
(main) Extending non-unique programids with multiple parts.
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:607  
(main)     Found 0
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:612  
(main) Marking repeats.
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:626  
(main)     Found 0
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:628  
(main) Unmarking new episode rebroadcast repeats.
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:638  
(main)     Found 0
Jun 12 08:14:09 myth mythfilldatabase[2572]: I CoreContext main.cpp:650  
(main) Marking episode first showings.
Jun 12 08:14:10 myth mythfilldatabase[2572]: I CoreContext main.cpp:691  
(main)     Found 1949
Jun 12 08:14:10 myth mythfilldatabase[2572]: I CoreContext main.cpp:693  
(main) Marking episode last showings.
Jun 12 08:14:12 myth mythfilldatabase[2572]: I CoreContext main.cpp:732  
(main)     Found 1949
Jun 12 08:14:12 myth mythfilldatabase[2572]: I CoreContext main.cpp:760  
(main)  
#012===============================================================#012|  
Attempting to contact the master backend for rescheduling.  |#012| If the  
master is not running, rescheduling will happen when |#012| the master  
backend is restarted.                             
|#012===============================================================
Jun 12 08:14:12 myth mythfilldatabase[2572]: I CoreContext  
mythcorecontext.cpp:371 (ConnectCommandSocket) MythCoreContext: Connecting  
to backend server: 127.0.0.1:6543 (try 1 of 1)
Jun 12 08:14:12 myth mythfilldatabase[2572]: I CoreContext  
mythcorecontext.cpp:1178 (CheckProtoVersion) Using protocol version 72
Jun 12 08:14:12 myth mythfilldatabase[2572]: N CoreContext main.cpp:769  
(main) mythfilldatabase run complete.
Jun 12 08:14:12 myth mythfilldatabase[2572]: I CoreContext  
datadirect.cpp:573 (~DataDirectProcessor) DataDirect: Deleting temporary  
files



More information about the mythtvnz mailing list