Changeset 1996

Show
Ignore:
Timestamp:
01/11/08 03:33:28
Author:
youpy
Message:
  • update for zShare's specification change
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/assets/plugins/Filter-FindEnclosures/zshare.pl

    r1986 r1996  
    1212        $uri, 
    1313        ['download' => 1]); 
    14     if($response->content =~ m/content="10;URL=(.+?)">/) { 
     14    if($response->content =~ m/('h','t','t','p'.+?')\);link/) { 
     15        my $enclosure_url = $1; 
     16        $enclosure_url =~ s/[',]//g; 
    1517        my $enclosure = Plagger::Enclosure->new; 
    16         $enclosure->url($1); 
     18        $enclosure->url($enclosure_url); 
    1719        $enclosure->auto_set_type; 
    1820        return $enclosure;