Discussion:
[Xmltv-devel] Known problems for tv_grab_eu_epgdata since New Year?
Carsten Aulbert
2014-01-05 17:42:48 UTC
Permalink
Hi

I just discovered that my mythtv box does not update my German listings
anymore and it seems to coincide with New Year.

System is Debian Wheezy with

tv_grab_eu_epgdata --version
XMLTV module version 0.5.63
This is tv_grab_eu_epgdata version 1.36, 2012/06/08 13:16:47

With Perl's debugger I landed at:

url=http://www.epgdata.com/index.php?action=sendPackage&iOEM=&pin=PIN&dayOffset=0&dataType=xml
at /usr/bin/tv_grab_eu_epgdata line 314
main::downloadepg(1, 0, 'PIN') called at
/usr/bin/tv_grab_eu_epgdata line 288

No more zip files available for download
at /usr/bin/tv_grab_eu_epgdata line 332
main::downloadepg(1, 0, 'PIN') called at
/usr/bin/tv_grab_eu_epgdata line 288
Use of uninitialized value $time in localtime at
/usr/share/perl5/Date/Format.pm line 121.
at /usr/share/perl5/Date/Format.pm line 121
Date::Format::Generic::time2str('Date::Format::Generic', '%C',
undef) called at /usr/share/perl5/Date/Format.pm line 17
Date::Format::time2str('%C', undef) called at
/usr/bin/tv_grab_eu_epgdata line 337
main::downloadepg(1, 0, 'PIN') called at
/usr/bin/tv_grab_eu_epgdata line 288
Your PIN will expire around Thu Jan 1 01:00:00 CET 1970
at /usr/bin/tv_grab_eu_epgdata line 337
main::downloadepg(1, 0, 'PIN') called at
/usr/bin/tv_grab_eu_epgdata line 288
main::(/usr/bin/tv_grab_eu_epgdata:289):
289: exit 1 unless @xmlfiles;


Sorry for line breaks

The xmltv config file contained either 'tz=local' or 'tz=Europe/Berlin'
but both didn't work. So far I have no idea why 'undef' appears there.

The same error occurs when using the grabber from nightly.

Any idea what's wrong?

Cheers

Carsten
Carsten Aulbert
2014-01-05 18:00:08 UTC
Permalink
Hi again

hmm, I debugged it a bit more and it seems that the if clause in line
316 fails:

HTTP::Headers=HASH(0x5452100)
'cache-control' => 'no-store, no-cache, must-revalidate'
'client-date' => 'Sun, 05 Jan 2014 17:56:47 GMT'
'client-peer' => '195.50.176.247:80'
'client-response-num' => 1
'connection' => 'close'
'content-disposition' => 'attachment;
filename="20140105_20140103_de_qy.zip"'
'content-length' => 19120392
'content-type' => 'application/x-zip-compressed'
'date' => 'Sun, 05 Jan 2014 17:56:29 GMT'
'expires' => 'Mon, 26 Jul 1997 05:00:00 GMT'
'last-modified' => 'Fri, 03 Jan 2014 15:49:29 +0100'
'pragma' => 'no-cache'
'server' => 'Apache'
'x-epgdata-channelgroup' => 'y'
'x-epgdata-datadepth' => 'q'
'x-epgdata-email' => '***@example.com'
'x-epgdata-isdemo' => 0
'x-epgdata-istrial' => 0
'x-epgdata-language' => 'de'
'x-epgdata-packageavailable' => 0
'x-epgdata-timeout' => 1395702000
'x-prodadis-channelgroup' => 'y'
'x-prodadis-datadepth' => 'q'
'x-prodadis-email' => '***@example.com'
'x-prodadis-isdemo' => 0
'x-prodadis-istrial' => 0
'x-prodadis-language' => 'de'
'x-prodadis-timeout' => 1395702000

I'm not too sure if x-epgdata-packageavailable is 0 because I already
hit the daily download limit, but then why do I still get content?

Cheers

Puzzled Carsten
Carsten Aulbert
2014-01-06 06:49:04 UTC
Permalink
Hi
Post by Carsten Aulbert
I'm not too sure if x-epgdata-packageavailable is 0 because I already
hit the daily download limit, but then why do I still get content?
I changed the comparison from ==1 to >=0 and hence invalidated it but
then the grabber worked again and mythfilldatabase inserted new listings.

Very weird.

Cheers

Carsten
h***@gmail.com
2014-01-06 16:47:32 UTC
Permalink
Post by Carsten Aulbert
Post by Carsten Aulbert
I'm not too sure if x-epgdata-packageavailable is 0 because I already
hit the daily download limit, but then why do I still get content?
I changed the comparison from ==1 to >=0 and hence invalidated it but
then the grabber worked again and mythfilldatabase inserted new listings.
Very weird.
Cheers
Carsten
Hi,

I don't know how this grabber works but it seems the header
'x-epgdata-packageavailable' => 0
is the problem as you suggest. You'd need to understand why the website said this. Perhaps they were just slow in adding new data? Did mythfilldatabase really add "new" listings or were they old ones?

Try downloading online to see if their website is ok: http://www.epgdata.com/download-datenpakete
(& grab the http headers while you do this if you can).

You could also try and emulate the grabber's call
http://www.epgdata.com/index.php?action=sendPackage&iOEM=&pin=PIN&dayOffset=0&dataType=xml
to see what you get manually.

Cheers,
Geoff

p.s. the latest version of this grabber is 1.40 - it might be worth updating?
Loading...