Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add fliggo.com

Signed-off-by: Tatsuhiko Miyagawa <miyagawa@gmail.com>
  • Loading branch information...
commit aa914db4334f06b46d8a254a3cd853d69b15d14a 1 parent d464383
MATSUU Takuto authored miyagawa committed
19 root/plugins/fliggo.com/find_enclosures.pl
... ... @@ -0,0 +1,19 @@
  1 +sub init {
  2 + my $self = shift;
  3 + $self->{handle} = '/video/\w+';
  4 +}
  5 +
  6 +sub find {
  7 + my ($self, $args) = @_;
  8 +
  9 + (my $url = $args->{entry}->link) =~ s!/video/!/player/!
  10 + or return;
  11 +
  12 + my $enclosure = Plagger::Enclosure->new;
  13 + $enclosure->url($url);
  14 + $enclosure->width(640);
  15 + $enclosure->height(480);
  16 + $enclosure->type("application/x-shockwave-flash");
  17 +
  18 + return $enclosure;
  19 +}
1  root/plugins/fliggo.com/find_links.yaml
... ... @@ -0,0 +1 @@

0 comments on commit aa914db

Please sign in to comment.
Something went wrong with that request. Please try again.