Re: UK RT grabber still an hour out for me

Neil Bird <[email protected]>
Newsgroups gmane.comp.tv.xmltv.general
Message-ID <[email protected]>
Around about 27/04/11 08:12, Neil Bird typed ...
>     I've just noticed, however, that this stuffs up (or does not also fix)
> the auto-calculated tsod plus-1 times:  all my tsod plus-1 tagged channels
> have the shows on at the same time as the normal ones!  Luckily, I've not
> had to record off one of those yet ...

   Yes, it's bad:  the installed tv_grab_uk_rt is returning the *same* [& 
wrong] times for programmes on channels *and* their tsod-plus-1 counterparts.

   E.g.,

# watch.xmltv
encoding=utf-8
cachedir=/tmp/xmltv-cache
title-processing=enabled
channel=watch.uktv.co.uk
channel=tsod.plus-1.watch.uktv.co.uk


# RT site times for this prog. (6:10 am)
...~27/04/2011~06:10~06:35~25


# partial output of unedited tv_grab_uk_rt on CentOS5 (within BST)
...
   <programme start="20110427051000 +0100" stop="20110427053500 +0100" 
channel="watch.uktv.co.uk">
     <title>Animal Park: Wild in Africa</title>
...
   <programme start="20110427051000 +0100" stop="20110427053500 +0100" 
channel="tsod.plus-1.watch.uktv.co.uk">
     <title>Animal Park: Wild in Africa</title>
...



   This is my latest patch to the grabber:

--- /usr/bin/tv_grab_uk_rt      2010-12-18 06:42:33.000000000 +0000
+++ tv_grab_uk_rt       2011-04-27 09:46:44.712796000 +0100
@@ -145,8 +145,17 @@
  # At this point, grabbing routines take over from ParseOptions #
  ################################################################

-# UTC required for XMLTV::DST
+if (DateManipVersion(1) =~ /^5/o)
+{
+    # Work around broken DM5:  let it set TZ to the right value
+    delete $Date::Manip::DM5::Cnf{"TZ"};
+    $Date::Manip::DM5::Cnf{"TZ"} = Date::Manip::DM5::Date_TimeZone;
+}
+else
+{
+    # UTC required for XMLTV::DST (DM6)
  Date_Init('TZ=UTC');
+}

  die "Error: You cannot specify --quiet with --debug, exiting"
      if ($opt->{quiet} && $opt->{debug});



   This gives me the equiv. & correct output:
...
   <programme start="20110427061000 +0100" stop="20110427063500 +0100" 
channel="watch.uktv.co.uk">
     <title>Animal Park: Wild in Africa</title>
...
   <programme start="20110427061000 +0100" stop="20110427063500 +0100" 
channel="watch.uktv.co.uk">
     <title>Animal Park: Wild in Africa</title>
...


   I can't really take this any further myself.  I shall run with my patch 
for now;  I have to apply it to my Myth box and do a full update to see if 
(a) the normal times are still correct, and (b) the +1 times are now correct.

-- 
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.