Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (32 sloc) 1.191 kb
package DDG::Spice::Canistreamit;
# ABSTRACT: Stream provider movie search
use strict;
use DDG::Spice;
primary_example_queries "watch pirates of the caribbean";
secondary_example_queries "Can I stream The Dark Knight";
description "Find out how to watch movies";
name "CanIStream.It";
icon_url "/i/www.canistream.it.ico";
source "CanIStream.It";
code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Canistreamit.pm";
topics "entertainment";
category "entertainment";
attribution github => ['https://github.com/CanIStreamIt','CanIStream.it'],
twitter => ['https://twitter.com/CanIStreamIt','CanIStream.it'],
email => ['canistreamit@gmail.com','CanIStream.it'];
spice to => 'http://www.canistream.it/ddg/query/$1?callback={{callback}}';
triggers any => "stream", "watch", "streaming";
handle remainder => sub {
my $remainder = $_;
if ($remainder =~ /episodes?/){
return;
} else {
$remainder =~ s/\?//;
$remainder =~ s/ online//i;
if ($remainder =~ /^(?:can\s*i?|how\s*to|where\s*(?:to|can\s+i))?\s*(?:find\s+a)?\s*(.+)$/i) {
return $1;
}
}
return;
};
1;
Jump to Line
Something went wrong with that request. Please try again.