diff options
author | Tomáš Čech <sleep_walker@suse.cz> | 2013-04-03 21:16:41 +0200 |
---|---|---|
committer | Tomáš Čech <sleep_walker@suse.cz> | 2013-04-03 21:16:41 +0200 |
commit | 04985c2e9e26b1f8799f5273d55896df02a087ee (patch) | |
tree | 6fe7e1d482ba852ba1baed1fd77eb5d067853039 | |
parent | 4283749e2da2cdd3e2a66a786cbe0e197b19d616 (diff) | |
download | get-flash-videos-04985c2e9e26b1f8799f5273d55896df02a087ee.tar.gz |
return quickly if it is Facebook's Like button to be followed
-rw-r--r-- | lib/FlashVideo/Site/Facebook.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/FlashVideo/Site/Facebook.pm b/lib/FlashVideo/Site/Facebook.pm index 5ac4db9..ba2aff1 100644 --- a/lib/FlashVideo/Site/Facebook.pm +++ b/lib/FlashVideo/Site/Facebook.pm @@ -12,6 +12,9 @@ sub Version { $VERSION; } sub find_video { my ($self, $browser, $embed_url) = @_; + # If we should process Facebook's Like button, leave + return if ($embed_url =~ /http:\/\/www\.facebook\.com\/plugins\/like\.php/); + # Grab the file from the page.. my $params = ($browser->content =~ /\["params","(.+?)"\]/)[0]; $params =~ s/\\u([[:xdigit:]]{1,4})/chr(eval("0x$1"))/egis; |