Changeset 348 for grabbers/oztivo

Show
Ignore:
Timestamp:
12/10/06 17:03:08 (6 years ago)
Author:
lincoln
Message:

oztivo always supplies data in GMT. make sure shepherd interprets this correctly by appending +0000 timezone onto start/stop times

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • grabbers/oztivo

    r346 r348  
    33# OzTivo grabber 
    44 
    5 my $version = '0.12'; 
     5my $version = '0.13'; 
    66 
    77# Requires configuration! 
     
    2525# 0.12  : oztivo has invalid XMLTV (fields in wrong order, empty fields etc) 
    2626#         postprocess these 
     27# 0.13  : all oztivo programming is in GMT.  add +0000 to its timezone 
     28#         so the rest of shepherd knows this. 
    2729 
    2830use strict; 
     
    194196                } 
    195197            } 
     198 
     199            # if we have a start="(time)" and/or stop="(time)" make sure they 
     200            # have a timezone on them. 
     201            $line = $1."start=\"".$2." +0000\"".$3 if ($line =~ /^(.*)start="([0-9]+)"(.*)/); 
     202            $line = $1."stop=\"".$2." +0000\"".$3 if ($line =~ /^(.*)stop="([0-9]+)"(.*)/); 
     203 
    196204            print OUT $line."\n"; # programme tag 
    197205            $cur_field = "";