[mythtv-users] tv_grab_huro regularly fails

Alistair Grant akgrant0710 at gmail.com
Fri Jan 2 16:57:56 UTC 2015


On Fri, Jan 2, 2015 at 11:59 AM, Hika van den Hoven <hikavdh at gmail.com> wrote:
> Hoi Alistair,
>
> Friday, January 2, 2015, 11:28:48 AM, you wrote:
>
>> Hi Hika,
>
>> On Fri, Jan 2, 2015 at 11:10 AM, Hika van den Hoven <hikavdh at gmail.com> wrote:
>>>> I'm currently using tv_grab_huro to populate the free-to-air listings
>>>> in the Czech Republic, however more often than not it fails with a
>>>> message similar to:
>>>
>>>> could not fetch
>>>> http://www.port.cz/pls/tv/tv.channel?i_ch=20006&i_date=20150110&i_xday=5&i_where=1,
>>>> error: 500 Can't connect to www.port.cz:80 (Connection timed out),
>>>> aborting
>>>> INFO: tv_grab exit code: 110
>>>
>>>> I'm not familiar with this in Czech (shepherd in Australia "just
>>>> works"), so am not sure whether this is common behaviour or not.
>>>
>>>> mythfilldatabase is being run without any parameters (default configuration).
>>>
>>>> Can someone let me know if there is something I should do to improve
>>>> the reliability (I'm not aware of any other internet problems here),
>>>> or whether I should start diving in to the code to see if I can make
>>>> this a bit more reliable (I *really* hate perl :-().
>>>
>>> The site www.port.cz does exist. I can open it in my browser, can you?
>>> If not you have to look into your machines internet settings.
>>> Do you perchance use a proxy or anything like that or the most
>>> elementary question: 'Is the machine connected to the internet?'
>
>> Yep, tv_grab_huro does work sometimes (that's what I meant by "fails
>> more often than not" above), I've been able to open www.port.cz in my
>> browser (different machine, but same internet connection) and can curl
>> the URL from the myth machine.
>
>> No proxy anywhere on the local network, and I can ssh / scp GB of data
>> between machines without problem.  While I can't rule out problems
>> with the internet connection entirely, I haven't had any other issues
>> with the connection.
>
>> Thanks,
>> Alistair
>> _______________________________________________
>
> If you're capable of diving into the code, you could look for the
> time-out setting and raise that. This is the time it waits for
> response, after which it fails.

Yep.  Based on observing the behaviour of the grabber, I assume that
it is fetching numerous pages, and that if any one fails, it gives up.
It would also be worthwhile having a retry on each page (with a delay
in between).

mythbuntu 14.04 installs tv_grab_huro v1.48, while
http://xmltv.cvs.sourceforge.net/viewvc/xmltv/ contains a version
1.53.

I'd prefer to work on the latest version.  Can anyone confirm that
this is the correct source repository?

Thanks again,
Alistair


More information about the mythtv-users mailing list