root/trunk/plagger/assets/plugins/Filter-FindEnclosures/stage6.pl
| Revision 1955 (checked in by miyagawa, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | sub handle { |
| 2 | my ($self, $url) = @_; |
| 3 | $url =~ m!http://stage6\.divx\.com/.*videos?/(\d+)!; |
| 4 | } |
| 5 | |
| 6 | sub needs_content { 0 } |
| 7 | |
| 8 | sub find { |
| 9 | my ($self, $args) = @_; |
| 10 | |
| 11 | if ($args->{url} =~ m!http://stage6\.divx\.com/.*videos?/(\d+)!) { |
| 12 | my $enclosure = Plagger::Enclosure->new; |
| 13 | $enclosure->url("http://video.stage6.com/$1/"); |
| 14 | $enclosure->type('video/divx'); |
| 15 | $enclosure->filename("$1.divx"); |
| 16 | return $enclosure; |
| 17 | } |
| 18 | |
| 19 | return; |
| 20 | } |
Note: See TracBrowser for help on using the browser.
