diff options
author | fnord <fnord@fnord.mobi> | 2013-03-13 14:40:59 -0500 |
---|---|---|
committer | fnord <fnord@fnord.mobi> | 2013-03-13 14:40:59 -0500 |
commit | 3eab2429b123062f63e93b754e51e6e1a753f8e3 (patch) | |
tree | ad9d7a1fbf813cdd00a87b5d3155fc7c391ee408 | |
parent | 7a4f6cdf8125c9d672d0c02a1b99b6e1e4e8b0d0 (diff) | |
download | get-flash-videos-3eab2429b123062f63e93b754e51e6e1a753f8e3.tar.gz |
Tone down FlashVideo::Site::Channel5's greediness, allowing
downloads via FlashVideo::Site::Brightcove to work once more.
Fixes tvo.org and probably others.
-rw-r--r-- | lib/FlashVideo/Site/Channel5.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/FlashVideo/Site/Channel5.pm b/lib/FlashVideo/Site/Channel5.pm index 643b3f6..e32b5e3 100644 --- a/lib/FlashVideo/Site/Channel5.pm +++ b/lib/FlashVideo/Site/Channel5.pm @@ -225,10 +225,10 @@ EOF5 sub can_handle { my($self, $browser, $url) = @_; - return 1 if $url && URI->new($url)->host =~ /\.channel5\.com$/; + return 1 if ( ( $url && URI->new($url)->host =~ /\.channel5\.com$/ ) && - return $browser->content =~ /(playerI[dD]|brightcove.player.create)/ - && $browser->content =~ /brightcove/i; + ( $browser->content =~ /(playerI[dD]|brightcove.player.create)/ + && $browser->content =~ /brightcove/i )); } 1; |