diff options
author | Paul Wise <pabs3@bonedaddy.net> | 2012-10-24 19:44:05 +0800 |
---|---|---|
committer | Paul Wise <pabs3@bonedaddy.net> | 2013-01-26 16:04:21 +0800 |
commit | 516615b6e4ac80fec6e6ce57dd574c5be7389076 (patch) | |
tree | b9f630a21976e5cab532a9b5018f84840a8cea5f | |
parent | 2f12e6dc9cd2ee3ecc9df285431ef6f207c0d7df (diff) | |
download | get-flash-videos-516615b6e4ac80fec6e6ce57dd574c5be7389076.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; |