Ignore:
Timestamp:
Sep 9, 2013, 10:13:00 PM (5 years ago)
Author:
mbarry
Message:

imdb_augment_data: Avoid erroring out with movies that begin with "The"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/postprocessors/imdb_augment_data

    r1406 r1469  
    2828 
    2929my $progname = "imdb_augment_data"; 
    30 my $version = "1.02"; 
     30my $version = "1.03"; 
    3131 
    3232use XMLTV; 
     
    313313                        my $showname = $title; 
    314314                        $showname = "$1, The" if ($showname =~ /^The (.*)/i);   # format to match search results 
    315                         next unless ($text =~ /^$showname \(((19|20)\d\d)\)$/i); # ignore partial & approximate matches 
     315                        next unless ($text =~ /^$title \(((19|20)\d\d)\)$/i); # ignore partial & approximate matches 
    316316                        my $found_year = $1; 
    317317                        if (!$movie_year || !$found_year || (abs($movie_year - $found_year) <= 1) ) { 
Note: See TracChangeset for help on using the changeset viewer.