diff options
author | fnord <fnord@fnord.mobi> | 2013-03-16 14:16:54 -0500 |
---|---|---|
committer | fnord <fnord@fnord.mobi> | 2013-03-16 14:16:54 -0500 |
commit | eb324405607cc16c86863ab5d9735bec36170b9b (patch) | |
tree | 7ddd44c4a97065523a8aaa3f8fca829ee732974c | |
parent | 3eab2429b123062f63e93b754e51e6e1a753f8e3 (diff) | |
download | get-flash-videos-eb324405607cc16c86863ab5d9735bec36170b9b.tar.gz |
Revert "Tone down FlashVideo::Site::Channel5's greediness, allowing"
This reverts commit 3eab2429b123062f63e93b754e51e6e1a753f8e3.
Prior update put greedy plugin on permanent hunger strike.
-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 e32b5e3..643b3f6 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$/; - ( $browser->content =~ /(playerI[dD]|brightcove.player.create)/ - && $browser->content =~ /brightcove/i )); + return $browser->content =~ /(playerI[dD]|brightcove.player.create)/ + && $browser->content =~ /brightcove/i; } 1; |