Changeset 1563 for trunk

Show
Ignore:
Timestamp:
06/26/09 23:58:32 (5 months ago)
Author:
mpaschal
Message:

Only look at personalized pages for Steam achievements (to avoid UUVs)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ActionStreams/plugins/ActionStreams/lib/ActionStreams/Event/Steam.pm

    r1300 r1563  
    5959    return if !$games; 
    6060 
    61     for my $url (@$games) { 
     61    URL: for my $url (@$games) { 
    6262        my $gamecode = "$url"; 
    6363        $gamecode =~ s{ \A .* / }{}xms; 
    6464 
    6565        $url = "$url?tab=achievements";  # TF2's stats page has tabs 
     66 
     67        next URL if $url !~ m{ \Q$ident\E }xms; 
     68 
    6669        my $items = $class->fetch_scraper( 
    6770            url     => $url, 
    6871            scraper => $achv_scraper, 
    6972        ); 
    70         next if !$items; 
     73        next URL if !$items; 
    7174 
    7275        my ($title, $achvs) = @$items{qw( title achvs )};