Changeset 864

Show
Ignore:
Timestamp:
05/30/06 16:12:53
Author:
miyagawa
Message:

FindEnclosures?: prioritize URLs with flv

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/FindEnclosures.pm

    r850 r864  
    110110    if (my $flashvars = first { lc($_->[1]->{name}) eq 'flashvars' } @params) { 
    111111        my %values = split /[=&]/, $flashvars->[1]->{value} || ''; 
    112         $url = first { m!^https?://! } values %values; 
     112        $url   = first { m!^https?://.*\flv! } values %values; 
     113        $url ||= first { m!^https?://.*! } values %values; 
    113114    } 
    114115