diff options
author | Paul Wise <pabs3@bonedaddy.net> | 2012-10-24 19:44:05 +0800 |
---|---|---|
committer | Paul Wise <pabs3@bonedaddy.net> | 2012-10-24 19:44:05 +0800 |
commit | 42c62fc05edaaf5b57f00bdfd5f1e74247cc3a2c (patch) | |
tree | 8a197fc8347ee54a4303bd7f5db4bbd466c9db3b | |
parent | c52cdf6c0f8a4ddf03041505a2094424d9dff2b4 (diff) | |
download | get-flash-videos-42c62fc05edaaf5b57f00bdfd5f1e74247cc3a2c.tar.gz |
Make the Ooyala plugin a bit more flexible
-rw-r--r-- | lib/FlashVideo/Site/Ooyala.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/FlashVideo/Site/Ooyala.pm b/lib/FlashVideo/Site/Ooyala.pm index 15e4997..f5c84af 100644 --- a/lib/FlashVideo/Site/Ooyala.pm +++ b/lib/FlashVideo/Site/Ooyala.pm @@ -16,7 +16,7 @@ sub find_video { my ($player_js) = uri_unescape( decode_entities( - $browser->content =~ m{<script src=["'](http://player\.ooyala\.com/player\.js[^'"]*)['"]>} + $browser->content =~ m{<script[^>]+src=["'](http://player\.ooyala\.com/player\.js[^'"]*)['"]} ) ); @@ -57,7 +57,7 @@ sub can_handle { return 1 if $url && URI->new($url)->host =~ /\.ooyala\.com$/; - return $browser->content =~ m{<script src=["']http://player\.ooyala\.com/player\.js[^'"]*['"]>}; + return $browser->content =~ m{<script[^>]+src=["']http://player\.ooyala\.com/player\.js[^'"]*['"]}; } 1; |