aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfnord <fnord@fnord.mobi>2013-03-13 14:40:59 -0500
committerfnord <fnord@fnord.mobi>2013-03-13 14:40:59 -0500
commit3eab2429b123062f63e93b754e51e6e1a753f8e3 (patch)
treead9d7a1fbf813cdd00a87b5d3155fc7c391ee408
parent7a4f6cdf8125c9d672d0c02a1b99b6e1e4e8b0d0 (diff)
downloadget-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.pm6
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;