Skip to content

Instantly share code, notes, and snippets.

@yusukebe
Created April 10, 2011 23:26
Show Gist options
  • Save yusukebe/912836 to your computer and use it in GitHub Desktop.
Save yusukebe/912836 to your computer and use it in GitHub Desktop.
use Acme::Porn::Embed;
my $url = 'http://www.yourfilehost.com/media.php?cat=video&file=backwards_piano_player.flv';
my $embed = Acme::Porn::Embed->new;
my $res = $embed->embed( $url );
$res->type; # now, response type is photo.
$res->title;
$res->url; # thumbnail url.
$res->width;
$res->height;
$res->provider_name;
$res->provider_url;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment