Changeset 1955
- Timestamp:
- 06/14/07 13:49:20
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/assets/plugins/Filter-FindEnclosures/stage6.pl
r1736 r1955 1 1 sub handle { 2 2 my ($self, $url) = @_; 3 $url =~ qr!http://stage6\.divx\.com/(?:[\w\-\+]+/show_video|members/\d+/videos|content/show)/\d+!;3 $url =~ m!http://stage6\.divx\.com/.*videos?/(\d+)!; 4 4 } 5 6 sub needs_content { 0 } 5 7 6 8 sub find { 7 9 my ($self, $args) = @_; 8 my $url = $args->{url};9 10 10 if ($args->{ content} =~ m!<a class='vdetail-down' href="http://video.stage6.com/(\d+)/(\d+).divx"!gms){11 if ($args->{url} =~ m!http://stage6\.divx\.com/.*videos?/(\d+)!) { 11 12 my $enclosure = Plagger::Enclosure->new; 12 $enclosure->url("http://video.stage6.com/$1/ $2.divx");13 $enclosure->url("http://video.stage6.com/$1/"); 13 14 $enclosure->type('video/divx'); 14 $enclosure->filename("$ 2.divx");15 $enclosure->filename("$1.divx"); 15 16 return $enclosure; 16 17 }
