Changeset 65

Show
Ignore:
Timestamp:
10/11/06 17:30:16 (7 years ago)
Author:
max
Message:

OzTivo? decodes HTML.

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • grabbers/oztivo

    r62 r65  
    33# OzTivo grabber 
    44 
    5 my $version = '0.5'; 
     5my $version = '0.6'; 
    66 
    77# Requires configuration! 
     
    1717# 0.5   : Identify user agent; support gzip compression; turn off  
    1818#         output buffering 
     19# 0.6   : Decodes HTML characters 
    1920 
    2021use strict; 
     
    2324use Cwd; 
    2425use Getopt::Long; 
     26use HTML::Entities; 
    2527 
    2628my $config_file = cwd() . "/oztivo.pw"; 
    27 my $output_file = cwd() . "/oztivo.xmltv"; 
     29my $output_file = cwd() . "/output.xmltv"; 
    2830my $channels_file; 
    2931my $channels; 
     
    107109} 
    108110 
     111print "Decoding HTML.\n"; 
     112HTML::Entities::decode($data); 
     113 
    109114print "Transforming XMLTVIDs.\n"; 
    110  
    111115$data =~ s/channel="(.*)"/'channel="'.subme($1).'"'/ge; 
    112116 
    113117print "Writing output.\n"; 
    114  
    115118open (OUT, ">$output_file"); 
    116119print OUT $data; 
  • status

    r63 r65  
    11shepherd:0.2.10:shepherd 
    22rex:3.2.2:grabber 
    3 oztivo:0.5:grabber 
     3oztivo:0.6:grabber 
    44abc_website:1.55-r2:grabber 
    55abc2_website:1.55-r2:grabber