[mythtvnz] tv_grab_nz-py set up, details

Curtis Walker sultanoswing at gmail.com
Mon Jan 23 05:20:19 GMT 2012


On 23 January 2012 18:13, Worik Stanton <worik.stanton at gmail.com> wrote:
> I am curious as to why running tv_grab_nz-py does not load listings where I
> can see them, yet is repored in a status report to have succeeded.
>
>
>
>
> On 23/01/12 16:10, Paulgir wrote:
>
> TO be sure this is the script I used...
>>
>>
>> STARTS
>> #! /bin/bash
>> wget http://nzepg.org/freeview.xml.gz
>> gunzip freeview.xml.gz
>> mythfilldatabase --file 1 freeview.xml --update
>> rm freeview.xml
>> exit
>> STOPS
>>
>
> [snip]
>
>> FYI here is the output of the script...
>>
>> $ ./updateEPG.sh
>> --2012-01-23 12:56:48--  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: 197214 (193K) [application/x-gzip]
>> Saving to: `freeview.xml.gz'
>>
>> 100%[======================================>] 197,214      148K/s   in
>> 1.3s
>>
>> 2012-01-23 12:56:51 (148 KB/s) - `freeview.xml.gz' saved [197214/197214]
>>
>> 2012-01-23 12:56:52.665 Bypassing grabbers, reading directly from file
>> 2012-01-23 12:56:52.678 Using runtime prefix = /usr
>> 2012-01-23 12:56:52.678 Using configuration directory =
>> /home/lounge/.mythtv
>> 2012-01-23 12:56:52.713 Empty LocalHostName.
>> 2012-01-23 12:56:52.713 Using localhost value of mythdu
>> 2012-01-23 12:56:52.757 New DB connection, total: 1
>> 2012-01-23 12:56:52.762 Connected to database 'mythconverg' at host:
>> localhost
>> 2012-01-23 12:56:52.786 Closing DB connection named 'DBManager0'
>> 2012-01-23 12:56:52.787 Connected to database 'mythconverg' at host:
>> localhost
>> 2012-01-23 12:56:52.790 Current locale en_NZ
>> 2012-01-23 12:56:52.812 No locale defaults file for en_NZ, skipping
>
>
>
> Is this an important error?  I expect this is unimportant
>
>> 2012-01-23 12:56:52.847 Loading en_us translation for module mythfrontend
>> 2012-01-23 12:56:52.871 Current MythTV Schema Version (DBSchemaVer): 1264
>> 2012-01-23 12:56:53.198 New DB connection, total: 2
>> 2012-01-23 12:56:53.198 Connected to database 'mythconverg' at host:
>> localhost
>> 2012-01-23 12:56:53.752 IconData: Updating icons for sourceid: 1
>> 2012-01-23 12:56:53.891 New DB connection, total: 3
>> 2012-01-23 12:56:53.891 Connected to database 'mythconverg' at host:
>> localhost
>> 2012-01-23 12:57:03.414 Updated programs: 749 Unchanged programs: 2498
>
>
> Here it seems the process is actually loading data.  There are 3,250 ish
> programmes....
>
>> 2012-01-23 12:57:03.448 Adjusting program database end times.
>> 2012-01-23 12:57:03.527     0 replacements made
>> 2012-01-23 12:57:03.527 Marking generic episodes.
>> 2012-01-23 12:57:03.568     Found 111
>> 2012-01-23 12:57:03.568 Fudging non-unique programids with multiple
>> parts.
>> 2012-01-23 12:57:03.579     Found 0
>> 2012-01-23 12:57:03.579 Marking repeats.
>> 2012-01-23 12:57:03.612     Found 0
>> 2012-01-23 12:57:03.612 Unmarking new episode rebroadcast repeats.
>> 2012-01-23 12:57:03.616     Found 0
>
>
> 0 repeats?  That does not seem right.
>
>> 2012-01-23 12:57:03.723 Marking episode first showings.
>> 2012-01-23 12:57:05.311     Found 1416
>> 2012-01-23 12:57:05.312 Marking episode last showings.
>> 2012-01-23 12:57:06.880     Found 1416
>> 2012-01-23 12:57:06.883
>
>
> 1,416 first episodes, that does not seem right.
>
>> ===============================================================
>> | Attempting to contact the master backend for rescheduling.  |
>> | If the master is not running, rescheduling will happen when |
>> | the master backend is restarted.                            |
>> ===============================================================
>> 2012-01-23 12:57:06.890 MythCoreContext: Connecting to backend server:
>> 192.168.1.14:6543 (try 1 of 1)
>> 2012-01-23 12:57:06.892 Using protocol version 63
>> 2012-01-23 12:57:07.126 Received a remote 'Clear Cache' request
>> 2012-01-23 12:57:08.125 mythfilldatabase run complete.
>> 2012-01-23 12:57:08.140 DataDirect: Deleting temporary files
>>
>
>
> How do I access the MySQL database?  I expect the problem lies in my
> settings in MythTV and there is a database full of programme listings.
>
> cheers
> Worik
>
>
> I ran the script in terminal and got a similar result but with these lines
> for every channel:
> "2012-01-23 15:33:20.500 Unknown xmltv channel identifier:
> c4.freeviewnz.tv - Skipping channel."
> I'll have to sort out the identifiers to get it to work.
>
> Thanks for the help
>
>
>
> --
> Foo!
>
>
> _______________________________________________
> 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/
>

To be clear, this is not the 'tv_grab_nz-py script, but a separate
bash script I wrote.

This page here details what I did to get the channels into my mythTV
backend channel editor. It was pretty manual! Check out under the
'MythTV' heading: http://www.wlug.org.nz/FreeViewHDMythTvNotes



More information about the mythtvnz mailing list