Alistair Grant
2015-01-06 07:33:33 UTC
Hi,
I have modified Get_nice to optionally retry failed gets.
Prior to enabling retries I had over half the updates
using tv_grab_huro (in the Czech Republic) failing completely, and the
remainder were incomplete due to what were considered non-fatal
failures (but it did mean that data for some channels was not
retrieved).
Comments in the code indicate that retries were not implemented
because failures were so rare, unfortunately that has not been my
experience.
Given that the overhead of supporting retries is minimal, and the cost
of re-running tv_grab_xxx is much higher, in my case 30+ gets for a
re-run vs a few gets due to retries, it seems like a logical feature
to add.
Note that the modification does not change existing behaviour by
default, the retries have to be enabled.
I've run the tests in http://wiki.xmltv.org/index.php/XmltvValidation
with mostly positive results. I've seen some errors that were
previously occurring according to
http://www.crustynet.org.uk/~xmltv-tester/squeeze/nightly/ and some
that are due to my environment, e.g. not substituting $Id$ as part of
the build process.
Before spending more time on tracking down and either fixing or
documenting the errors I'd like to get some confidence that the
changes will be accepted back in to the main repository.
The code is currently in my github repository on the huro_retry branch
(https://github.com/akgrant43/XMLTV/tree/huro_retry). If you would
like to take a look, only two files have been modified:
* grab/Get_nice.pm
* grab/huro/tv_grab_huro.in
README has been modified to add a pointer back to the original code so
people know it is a fork, it won't be part of the final submission.
Please let me know what you think.
Thanks very much,
Alistair
akgrant0710 on SourceForge
I have modified Get_nice to optionally retry failed gets.
Prior to enabling retries I had over half the updates
using tv_grab_huro (in the Czech Republic) failing completely, and the
remainder were incomplete due to what were considered non-fatal
failures (but it did mean that data for some channels was not
retrieved).
Comments in the code indicate that retries were not implemented
because failures were so rare, unfortunately that has not been my
experience.
Given that the overhead of supporting retries is minimal, and the cost
of re-running tv_grab_xxx is much higher, in my case 30+ gets for a
re-run vs a few gets due to retries, it seems like a logical feature
to add.
Note that the modification does not change existing behaviour by
default, the retries have to be enabled.
I've run the tests in http://wiki.xmltv.org/index.php/XmltvValidation
with mostly positive results. I've seen some errors that were
previously occurring according to
http://www.crustynet.org.uk/~xmltv-tester/squeeze/nightly/ and some
that are due to my environment, e.g. not substituting $Id$ as part of
the build process.
Before spending more time on tracking down and either fixing or
documenting the errors I'd like to get some confidence that the
changes will be accepted back in to the main repository.
The code is currently in my github repository on the huro_retry branch
(https://github.com/akgrant43/XMLTV/tree/huro_retry). If you would
like to take a look, only two files have been modified:
* grab/Get_nice.pm
* grab/huro/tv_grab_huro.in
README has been modified to add a pointer back to the original code so
people know it is a fork, it won't be part of the final submission.
Please let me know what you think.
Thanks very much,
Alistair
akgrant0710 on SourceForge